summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2020-08-11 02:53:51 +0000
committerMike Crute <mike@crute.us>2020-08-11 02:54:46 +0000
commit3d4f798b4905173a59283404b680e03f1477207e (patch)
tree43fd12e2ff55cce7e71e91f976278800a10db5f0
parentedcff1473721148c2eeb10d55a0c0f24409a508f (diff)
downloadgo_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.go4
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 @@
1package dns 1package dns
2 2
3import ( 3import (
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
50func (c *DNSClient) StartUpdate(zone *bind.Zone) *DNSTransaction { 52func (c *DNSClient) StartUpdate(zone *bind.Zone) *DNSTransaction {