Skip to content

configure a secondary dns (slave) server on linux

I have a master DNS server at 10.10.10.1 and a slave at 10.10.10.2
The master server needs this for each zone:

type master;
allow-transfer {10.10.10.2};
also-notify {10.10.10.2};
notify yes;

The slave server needs this for each zone:

type slave;
masters {10.10.10.1;};

Now whenever you modify a dns record on the master, increment the serial number and restart the service (or rndc reload) the changes will propagate to the slave. Note: the serial is generally the date but it doesn’t have to be, start it at 01 (before you setup your slave) and increment it if you like.

Post a Comment

You must be logged in to post a comment.