summaryrefslogtreecommitdiff
path: root/dns/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'dns/client.go')
-rw-r--r--dns/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/client.go b/dns/client.go
index f39bb4b..1b6b68a 100644
--- a/dns/client.go
+++ b/dns/client.go
@@ -149,8 +149,8 @@ func (c *DNSClient) SendQuery(t *DNSTransaction) ([]dns.RR, error) {
149 149
150// TODO: Copied from the letsencrypt service, merge this into existing functions 150// TODO: Copied from the letsencrypt service, merge this into existing functions
151func (c *DNSClient) sendReadQuery(ctx context.Context, fqdn string, rtype uint16, nameserver string) (*dns.Msg, error) { 151func (c *DNSClient) sendReadQuery(ctx context.Context, fqdn string, rtype uint16, nameserver string) (*dns.Msg, error) {
152 udp := &dns.Client{Net: "udp"} 152 udp := &dns.Client{Net: "udp", Timeout: time.Minute}
153 tcp := &dns.Client{Net: "tcp"} 153 tcp := &dns.Client{Net: "tcp", Timeout: time.Minute}
154 154
155 m := &dns.Msg{} 155 m := &dns.Msg{}
156 m.SetQuestion(fqdn, rtype) 156 m.SetQuestion(fqdn, rtype)