On master dns you need to allow zone transfer for the domain.
On slave dns you can use a fresh installed bind and add slave zone definition.
See examples.
Master dns zone config example:
Code:
zone "domain.name" {
type master;
file "/usr/local/etc/namedb/master/zonefile";
allow-transfer { SLAVE DNS IP;};
};
Slave dns zone config example:
Code:
zone "domain.name" {
type slave;
file "/usr/local/etc/namedb/slave/zonefile";
masters { MASTER DNS IP;};
masterfile-format text;
allow-transfer { none; };
};
Restart both dns servers or run
rndc reload
on the both servers.
Slave must download zone from master to the path specified in slave zone configuration.
Check that both servers are up and running from any other external host.
Run
nslookup domain.name master_ip
and
nslookup domain.name slave_ip
Check the answer from the both servers.
You can use a host command instead of nslookup to check availability of the dns-zone on each dns-server.
Change your zonefile on master - add second NS record.
Update NS SERVERS records for your domain using control panel of the company where you registered your domain.