5 Commits

Author SHA1 Message Date
Benoît Ganne
6dd954687e add support for peer auto-discovery in wgsd
This patch allows clients to auto-discover other mesh peers:
 - add a TXT record to default SRV answer containing the allowed ip and
public key: clients no longer have to have other peers pre-configured,
all necessary configuration is contained in the SRV record. Only a
connection to the registry is necessary to be allowed to connect to any
other peer
 - allow clients to request SRV records by allowed ip in addition to
public key: a client wanted to communicate with a specific ip can now
discover the associated peer w/o knowing its public key before-hand

Limitations:
 - the exported allowed ip config is only the 1st subnet configured
 - for 2 peers to communicate, both must setup the wireguard association
2020-12-08 13:45:07 +01:00
Benoît Ganne
106dca421c always use full Service Instance Name
Service instance name is defined in RFC6763 section 4.1 as
  Service Instance Name = <Instance> . <Service> . <Domain>
Use it instead of <Instance> . <Domain> for consistency.
2020-12-08 13:45:07 +01:00
Jordan Whited
6c78ee4e64 setup github actions 2020-11-23 14:20:53 -08:00
Jordan Whited
49e376d95c add tests for nxdomain and servfail 2020-05-28 19:46:24 -07:00
Jordan Whited
89263dec22 add ServeDNS() tests 2020-05-27 16:29:09 -07:00