I have a couple of name servers running and figured it would be a good idea to have multiple backups actually running in place and fully up to date, so when one of the real ones goes down, the process of finding a replacement will be completely painless.
rpm -qa bind*
bind-utils-9.3.6-4.P1.el5_4.2
bind-libs-9.3.6-4.P1.el5_4.2
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=12684
yum -y install bind
...
/etc/init.d/named start
Locating //etc/named.conf failed:
[FAILED]
copy over my ‘secondary’ named.conf file, try again:
/etc/init.d/named start
/etc/named.conf:10: open: /etc/ns1_rndc.key: file not found
copied over the file /etc/ns1_rndc.key from my other name server
zone 0.0.127.IN-ADDR.ARPA/IN: loading master file rev.localhost: file not found
copied over & updated the rev.localhost file from the other name server
could not configure root hints from 'named.root': file not found
copy over the named.root file from my other server
couldn't open pid file 'named.pid': Permission denied
change the permission on the /var/named folder to group writable with
chmod 2774 /var/named
and the secondary is now fully backed up.
Next I set up some shell scripts that copy the named.conf file from the actual secondary name server into place on the backup name servers, so they’ll always be up to date without me needing to do anything further.