how would I go around and transfer all the zones from primary to the secondary server? I created a zone and transfer from master, but this is only 1 zone. The primary dns have 300 zones entry, and it is a pain moving the 1 at a time.
On your master server you should have an entry in your named.conf file something like:
zone "example.com" IN {
type master;
file "example.com.zone";
allow-update { none; };
};
On your slave server you need to configure named.conf to be a slave for that zone and tell it where the master server is. So you would have a matching entry like:
zone "example.com" {
type slave;
file "example.com.zone";
masters { 192.168.0.1; };
};
So when the slave is reloaded, it will check the master zone file to see if the serial is changed. The first time it will copy the zone to /var/named/example.com.zone and from then on, if the serial is updated on the master and the slave reloads and checks this serial it will transfer the zone.
When dealing with large DNS implementations (such as an ISP) it's common for scripts to be used to configure the named.conf file on the slaves so that you don't have to manually edit this file on all slaves. When a new zone is created on the master the named.conf file entry for the zone is written and a script edits the slaves so that the zone will be transferred on the next reload. If you don't have this then you will have to manually edit this file on your slave.
Chris.
**********************
Chris A.C, CCNA, CCSA
**********************
thanks for the post, but the server that the company using is running MS Windows 2000 server. Can't seem to find the named.conf file anywhere. I'm assume you are referring to Linux server?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.