How to switch master and slave servers?

Patrick B. Jones pj at bmonkey.com
Tue Apr 10 02:33:06 UTC 2001


Do not forget to include the master IP address for the zones that are to be
slaves, if they say "slave" you will need to specify where to go to get the
zone. Also, you need to set the master dns' named.conf to allow whatever the
IP addresses of the slaves are to get transfers.......

~PJ

-----Original Message-----
From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org]On
Behalf Of HW
Sent: Monday, April 09, 2001 9:05 PM
To: comp-protocols-dns-bind at moderators.isc.org
Subject: How to switch master and slave servers?


Hello,

My colleague just installed a Solaris 8 system with BIND 8.1.2 (I know it's
not the newest version of BIND) as slave DNS server.  The master DNS server
is running a pretty old version of BIND (it's using /etc/named.boot and I
tried to help her to determine the version of the BIND, but neither "dig" or
"nslookup" could figure out which old version the master is running).

Right now, my colleague got a new project that she needs to switch master
DNS server to slave DNS server and slave DNS server to master DNS server.

Here is what I think we can try:

On slave (going to be master):

(1) modify /etc/named.conf by replacing "type slave" to "type master" in all
zone definition.
(2) copy all db zone files from original master server to current slave
(going to be master) one.
(3) modify the following line in all db files as:
    @ IN SOA original-master.abc.com root.original-master.abc.com (
            1234567; serial
            .....                        )
    ;

To    @ IN SOA new-master.abc.com root.new-master.abc.com (
            1234567; serial
            ..........                    )

(4) restart named daemon.

On master (going to be slave):

Doing the same thing as above except "master" to "slave".

Can anyone tell me if I missed anything else to switch master DNS server to
slave DNS server and slave DNS server to master DNS server?

Thank you very much for your help.

HW.




More information about the bind-users mailing list