Freebsd – test if master dns has transfered copy to slave

bindfreebsdmaster-slave

I setup my master and slave using FreeBSD. I'm currently running the Bind 9.X version, so far everything is working successfully. Just one small problem.

I can't get the master copy of my DNS to transfer it to the slave server.
I included transfer-allow {192.168.1.111;}; // this is the slave server's IP

I ran the rndc reload command to check but I don't see the copy in the /etc/named/master/?

Any help would be appreciated and if you would like the layout of my DNS, I can provide that too.

Best Answer

BIND 9 master servers will send out NOTIFY messages to each of the NS records you have, when the zone is loaded. This would be any host you have NS records for. For example:

example.com. NS ns1.example.org.
example.com. NS ns2.example.info.

In this case, if ''ns1.example.org'' was the master, it would send a NOTIFY to ''ns2.example.info'' when a new zone version was loaded.

To ensure that this happens, you must increment the serial number in the SOA record for your domain each time you edit it.

You can check all NS servers at once if you use host -C example.com

You may also want to run dig commands from one server to another. Try: dig @otherserver example.com. soa +norec If you see nothing, your machines are likely having firewalls get in the way.

Lastly, check the log files. There is usually something in there if things go wrong.