NetworkCommons / sig0namectl

Open dynamic DNS name management with SIG(0) update delegation.
https://sig0namectl.networkcommons.org
GNU Affero General Public License v3.0
12 stars 3 forks source link

FindDOHEndpoint() for an arbitrary name parameter should fallback to query the _dns.<zone of name> ie closest SOA #63

Open adam-burns opened 3 months ago

adam-burns commented 3 months ago

If there is no _dns subdomain for the submitted name parameter, then _dns. (where zone is the closest name to the param with SOA record) should also be queried for an SVCB record.

if answer.Answer < 1, the Ns array already contains an array member that is the SOA record of the passed parameter

https://github.com/NetworkCommons/sig0namectl/blob/33f6d1a25c535f778f7cb70f8cb06ed94c16b921/golang/sig0/doh.go#L62-L65