LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to confvert a secondary DNS server to a primary? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-confvert-a-secondary-dns-server-to-a-primary-393102/)

Tazzmanian 12-15-2005 06:33 AM

How to confvert a secondary DNS server to a primary?
 
Hi,

We are setting up a disaster recovery site and we will have a DNS server acting as a secondary server, I would like to know how can we convert this server to become the master in the event of a disaster, we are, of course running BIND as our DNS software.

Thanks!

nvargas 12-15-2005 09:06 AM

Declare your primary and AS MANY secondary DNS servers with your name service provider; since slave servers have the very same configuration they read from the master, any of those will resolve in case one is missing.

If this is for LAN resolving, make sure you configure the secondary servers in your all clients.

Tazzmanian 12-15-2005 09:38 AM

Secondary zone
 
Thanks for the reply, let's say in a crisis situation and that the master in no longer available what steps do I need to follow to convert my secondary to master?

Thanks!

bathory 12-15-2005 09:39 AM

I think that editing the named.conf file of the secondary, changing the line
Code:

type slave;
to
Code:

type master;
and removing the line you define the masters
Code:

masters {xx.xx.xx.xx;};
should do the job.

Tazzmanian 12-15-2005 09:41 AM

Thanks for the input!

nvargas 12-15-2005 10:07 AM

Now, keep this in mind. BIND was designed in a way that you can lose connection to your master server for x amount of time and your secondaries will answer for your domain, typical configuration is 3 days but you can modify this for more days.

So, if your master catches fire, if your secondaries are up and you defined them with your name registrar and client computers, losing that server is no big deal.

As Bathory said, you can modify your named.conf file in any secondary to be master of the domain and delete the "masters" line.

Just remember to declare the zone files (btw, you can use the ones stored in /var/named that were created automatically), the IP number for the server (remember that it will be the master for the slaves, so it's easier to change the IP number for the new server than reconfiguring slave servers and clients).


All times are GMT -5. The time now is 08:41 PM.