jwhited / wgsd

A CoreDNS plugin that provides WireGuard peer information via DNS-SD semantics
https://www.jordanwhited.com/posts/wireguard-endpoint-discovery-nat-traversal/
MIT License
818 stars 76 forks source link

serve public key and allowed-ips via TXT key value pairs #17

Closed jwhited closed 3 years ago

jwhited commented 3 years ago

something like:

yutrled535igkl7bdlerl6m4vjxsxm3uqqpl4nmsn27mt56ad4ha====._wireguard._udp.example.com. 0 IN  TXT "pubkey=xScVkH3fUGUv4RrJFfmcqm8rs3SEHr41km6+yffAHw4=" allowed-ips="10.0.0.0/8,192.168.0.0/16"

reference: https://tools.ietf.org/html/rfc6763#section-6