From 3d4f798b4905173a59283404b680e03f1477207e Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Tue, 11 Aug 2020 02:53:51 +0000 Subject: Add port to allow dns transfer --- dns/cilent.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dns/cilent.go b/dns/cilent.go index 989bb4d..6efe1b5 100644 --- a/dns/cilent.go +++ b/dns/cilent.go @@ -1,6 +1,8 @@ package dns import ( + "fmt" + "github.com/miekg/dns" "code.crute.me/mcrute/go_ddns_manager/bind" @@ -44,7 +46,7 @@ func (c *DNSClient) AXFR(zone *bind.Zone) (chan *dns.Envelope, error) { m.SetAxfr(zone.Name) k.Sign(m) - return t.In(m, c.Server) + return t.In(m, fmt.Sprintf("%s:53", c.Server)) } func (c *DNSClient) StartUpdate(zone *bind.Zone) *DNSTransaction { -- cgit v1.2.3