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
804 stars 74 forks source link

Allow serving SRV records without "====" suffixes #42

Open PoneyClairDeLune opened 2 years ago

PoneyClairDeLune commented 2 years ago

Some implementations of DNS resolver only consider [0-9a-z.-] as valid characters (e.g. Deno), and will start to throw errors if an equal sign is encountered. Allowing serving SRV records both with and without the ==== suffix will get around such a problem.

PoneyClairDeLune commented 2 years ago

Truncating the ==== suffix everywhere, and only pad back when error occurs is suggested.