I'm using bind9 with webmin to try and set up a dns secondary for our primary nameserver. I'm in what I assume should be a very simple situation but I'm not able to get the master to transfer zones to the slave.
I've configured the master to have the slave in the Webmin Server Index then configured it as a slave under Cluster Slave Servers, then configured allow_transfer
on the master with the ip of the slave. iptables -nL
shows ports 53 and 953 as open on both master and slave. netstat -lnpt
shows named
listening to 53 (on master and slave), yet when I run test transferring the records to the slave I get:
Testing transfer of slave zone from 10.191.0.2 .. .. from 10.191.0.2 :
Failed : ;; Connection to 10.191.0.2#53(10.191.0.2) for
test.example.com failed: connection refused.
Configs for zone on master .2
zone "test.example.com" {
type master;
file "/var/lib/bind/test.example.com.hosts";
notify yes;
allow-transfer {
10.191.0.3;
};
};
Configs for zone on slave .3
zone "test.example.com" {
type slave;
masters {
10.191.0.2;
};
file "/var/lib/bind/test.example.com.hosts";
allow-transfer {
10.191.0.2;
};
allow-update {
10.191.0.2;
};
};
I know I'm missing something, but I can't seem to figure it out.
Thanks for any help
dig @primary test.example.com AXFR
and see what happens. If nothing or timeout, you have a network problem between both hosts. If something and an error, you should see more clearly what happens and with details in primary server logfiles. – Patrick Mevzek Jun 14 '19 at 23:02AXFR
uses TCP indeed. You should use any online tool like DNSviz or Zonemaster to verify your nameserver configuration, replying to both UDP and TCP for any query is mandatory for good operations. You can also easily test locally, usingdig +notcp
anddig +tcp
towards your nameserver. – Patrick Mevzek Jun 17 '19 at 18:02