someone might use recursion

This commit is contained in:
Jordan Whited 2020-05-15 14:20:39 -07:00
parent 27efcca09f
commit a3627a0f27

View File

@ -73,7 +73,7 @@ func main() {
m := &dns.Msg{} m := &dns.Msg{}
question := fmt.Sprintf("%s._wireguard._udp.%s", question := fmt.Sprintf("%s._wireguard._udp.%s",
pubKeyBase32, dns.Fqdn(*dnsZoneFlag)) pubKeyBase32, dns.Fqdn(*dnsZoneFlag))
m.SetQuestion(question, dns.TypeSRV).RecursionDesired = false m.SetQuestion(question, dns.TypeSRV)
r, _, err := dnsClient.ExchangeContext(srvCtx, m, *dnsServerFlag) r, _, err := dnsClient.ExchangeContext(srvCtx, m, *dnsServerFlag)
srvCancel() srvCancel()
if err != nil { if err != nil {