Web Hosting Talk







View Full Version : Backup DNS Servers


teck
02-20-2002, 08:10 PM
Right now, I have a cpanel server with both primary and secondary DNS on the server. What do I have to do to have another secondary or possibly a 3rd secondary server added to my list.

First, I know I have to make the appropriate additions in my registrar. I already have a dedicated IP on another box in a different location with BIND already compiled. Next, I just make up dns3.domain.com on my cpanel NS's and point it to this 3rd box.

How would I go about getting all the zone files over to the 3rd DNS? Do I just mass copy all the zone files into the appropriate directory on the box of the 3rd DNS?

So lets say I add my friends domain to my box. After adding it to my box, a zone entry gets created. Do I just copy this file over to the second box and just restart BIND or is there something I have to do?

Any ideas and thoughts will be greatly appreciated.

zupanm
02-20-2002, 09:30 PM
you can set up an rsync? to sync it over every hour or so.

teck
02-20-2002, 09:48 PM
Yeah but I wanted to know if i'm doing it right. The secondary server should automatically update itself with the use of the ttl and other stuff.. Not sure though :(

allan
02-20-2002, 10:37 PM
Originally posted by teck
Yeah but I wanted to know if i'm doing it right. The secondary server should automatically update itself with the use of the ttl and other stuff.. Not sure though :(

Teck -- you are correct, after a slave entry has been made into the named.conf file of the slave nameserver, it will automatically updated itself from the master.

teck
02-21-2002, 12:28 AM
Thanks, now I just have to figure all this out.

allan
02-21-2002, 12:36 AM
Originally posted by teck
Thanks, now I just have to figure all this out.

Not sure how to do it in cpanel, but if you were editing the named.conf file manually, you would use something like this:


zone "example.com" in {
type slave;
file "secondary.example.com";
masters { master.ip.add.ress; };
};


Hope that helps