diff options
author | Mike Crute <mike@crute.us> | 2020-08-11 02:53:51 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2020-08-11 02:54:46 +0000 |
commit | 3d4f798b4905173a59283404b680e03f1477207e (patch) | |
tree | 43fd12e2ff55cce7e71e91f976278800a10db5f0 | |
parent | edcff1473721148c2eeb10d55a0c0f24409a508f (diff) | |
download | go_ddns_manager-3d4f798b4905173a59283404b680e03f1477207e.tar.bz2 go_ddns_manager-3d4f798b4905173a59283404b680e03f1477207e.tar.xz go_ddns_manager-3d4f798b4905173a59283404b680e03f1477207e.zip |
Add port to allow dns transfer
-rw-r--r-- | dns/cilent.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
1 | package dns | 1 | package dns |
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "fmt" | ||
5 | |||
4 | "github.com/miekg/dns" | 6 | "github.com/miekg/dns" |
5 | 7 | ||
6 | "code.crute.me/mcrute/go_ddns_manager/bind" | 8 | "code.crute.me/mcrute/go_ddns_manager/bind" |
@@ -44,7 +46,7 @@ func (c *DNSClient) AXFR(zone *bind.Zone) (chan *dns.Envelope, error) { | |||
44 | m.SetAxfr(zone.Name) | 46 | m.SetAxfr(zone.Name) |
45 | k.Sign(m) | 47 | k.Sign(m) |
46 | 48 | ||
47 | return t.In(m, c.Server) | 49 | return t.In(m, fmt.Sprintf("%s:53", c.Server)) |
48 | } | 50 | } |
49 | 51 | ||
50 | func (c *DNSClient) StartUpdate(zone *bind.Zone) *DNSTransaction { | 52 | func (c *DNSClient) StartUpdate(zone *bind.Zone) *DNSTransaction { |