From a3627a0f27eb8dc7272ae52cc7331d20c9e38d17 Mon Sep 17 00:00:00 2001 From: Jordan Whited Date: Fri, 15 May 2020 14:20:39 -0700 Subject: [PATCH] someone might use recursion --- cmd/client/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/client/main.go b/cmd/client/main.go index b519ac6..7625c60 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -73,7 +73,7 @@ func main() { m := &dns.Msg{} question := fmt.Sprintf("%s._wireguard._udp.%s", pubKeyBase32, dns.Fqdn(*dnsZoneFlag)) - m.SetQuestion(question, dns.TypeSRV).RecursionDesired = false + m.SetQuestion(question, dns.TypeSRV) r, _, err := dnsClient.ExchangeContext(srvCtx, m, *dnsServerFlag) srvCancel() if err != nil {