summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2022-12-24 08:36:42 -0800
committerMike Crute <mike@crute.us>2022-12-24 08:36:42 -0800
commitd2d1be152822d4006855d1b692785c6d7f3d6d5d (patch)
tree46a8fd7c3ca1ccba238203dfe0af2770903b309a /dns
parentc18aef9f0aa2d9ed7238a0f1ce0a7d82c5800389 (diff)
downloadgo_ddns_manager-d2d1be152822d4006855d1b692785c6d7f3d6d5d.tar.bz2
go_ddns_manager-d2d1be152822d4006855d1b692785c6d7f3d6d5d.tar.xz
go_ddns_manager-d2d1be152822d4006855d1b692785c6d7f3d6d5d.zip
Fixes for ACMEv2
Diffstat (limited to 'dns')
-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)