Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

secondary dns..

Status
Not open for further replies.

tran008

Technical User
May 14, 2003
110
US
hi all,

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.

thanks
 
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
**********************
 
Hi Chris,

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?

thanks
 
Ah, yes I am referring to BIND. If it's a Windows DNS server then I have no idea.

Sorry.

Chris.

**********************
Chris A.C, CCNA, CCSA
**********************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top