Dynamic DNS

For years i’ve had dynamic DNS working on the domains us-west-2a.boxen.mage-net.net, us-west-2b.boxen.mage-net.net, us-west-2c.boxen.mage-net.net
These are three t2.nano AWS Instances behind EBS I only need static IP for rsync. So AWS EIP is overkill.

So Dynamic DNS.

NS Master

nsf.nuhosting.net.	300	IN	A	52.207.147.83

Slave

nsc.nuhosting.net.	300	IN	A	35.157.121.152
nsg.nuhosting.net.	300	IN	A	52.56.40.202

nsf.nuhosting.net.

/etc/bind$ named -v BIND 9.10.3-P4-Ubuntu  

nsg.nuhosting.net.

/etc/bind$ named -v BIND 9.10.3-P4-Ubuntu  

On nsf.nuhosting.net. I have

zone "mage-net.net" { type master; file "zones/mage-net.net"; update-policy { grant ddns-key.mage-net.net zonesub nameservers; }; allow-transfer { nameservers; }; };

nameservers
On nsf.nuhosting.net is

acl "nameservers"   { 52.207.147.83; 52.56.40.202; 35.157.121.152; 10.44.3.5; };

If on nsg.nuhosting.net

rndc retransfer mage-net.net

I get…

04-Oct-2017 13:25:33.154 general: info: received control channel command 'retransfer mage-net.net'
04-Oct-2017 13:25:33.154 general: debug 1: queue_soa_query: zone mage-net.net/IN: enter
04-Oct-2017 13:25:33.154 general: debug 1: soa_query: zone mage-net.net/IN: enter
04-Oct-2017 13:25:33.230 general: debug 1: refresh_callback: zone mage-net.net/IN: enter
04-Oct-2017 13:25:33.230 general: debug 1: refresh_callback: zone mage-net.net/IN: serial: new 2016120711, old 2016120710
04-Oct-2017 13:25:33.230 general: debug 1: queue_xfrin: zone mage-net.net/IN: enter
04-Oct-2017 13:25:33.230 general: info: zone mage-net.net/IN: Transfer started.
04-Oct-2017 13:25:33.230 general: debug 1: zone mage-net.net/IN: forced reload, requesting AXFR of initial version from 52.207.147.83#53
04-Oct-2017 13:25:33.305 xfer-in: error: transfer of 'mage-net.net/IN' from 52.207.147.83#53: failed to connect: connection refused
04-Oct-2017 13:25:33.305 general: debug 1: zone mage-net.net/IN: zone transfer finished: connection refused
04-Oct-2017 13:25:33.305 general: debug 1: zone_settimer: zone mage-net.net/IN: enter
04-Oct-2017 13:25:33.305 general: debug 1: queue_soa_query: zone mage-net.net/IN: enter
04-Oct-2017 13:25:33.305 xfer-in: info: transfer of 'mage-net.net/IN' from 52.207.147.83#53: Transfer status: connection refused
04-Oct-2017 13:25:33.305 xfer-in: info: transfer of 'mage-net.net/IN' from 52.207.147.83#53: Transfer completed: 0 messages, 0 records, 0 bytes, 0.075 secs (0 bytes/sec)
04-Oct-2017 13:25:33.654 general: debug 1: soa_query: zone mage-net.net/IN: enter
04-Oct-2017 13:25:33.731 general: debug 1: refresh_callback: zone mage-net.net/IN: enter
04-Oct-2017 13:25:33.731 general: debug 1: refresh_callback: zone mage-net.net/IN: serial: new 2016120711, old 2016120710
04-Oct-2017 13:25:33.731 general: debug 1: queue_xfrin: zone mage-net.net/IN: enter
04-Oct-2017 13:25:33.731 general: info: zone mage-net.net/IN: Transfer started.
04-Oct-2017 13:25:33.731 general: debug 1: zone mage-net.net/IN: forced reload, requesting AXFR of initial version from 52.207.147.83#53
04-Oct-2017 13:25:33.807 xfer-in: error: transfer of 'mage-net.net/IN' from 52.207.147.83#53: failed to connect: connection refused
04-Oct-2017 13:25:33.807 general: debug 1: zone mage-net.net/IN: zone transfer finished: connection refused
04-Oct-2017 13:25:33.807 general: debug 1: zone_settimer: zone mage-net.net/IN: enter
04-Oct-2017 13:25:33.807 xfer-in: info: transfer of 'mage-net.net/IN' from 52.207.147.83#53: Transfer status: connection refused
04-Oct-2017 13:25:33.807 xfer-in: info: transfer of 'mage-net.net/IN' from 52.207.147.83#53: Transfer completed: 0 messages, 0 records, 0 bytes, 0.076 secs (0 bytes/sec)

Published by

Daniel McMorrow

37 Year old disabled geek,