LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-15-2005, 06:33 AM   #1
Tazzmanian
LQ Newbie
 
Registered: Aug 2004
Posts: 12

Rep: Reputation: 0
Exclamation 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!
 
Old 12-15-2005, 09:06 AM   #2
nvargas
Member
 
Registered: Jan 2002
Location: Managua, Nicaragua
Distribution: Mandriva, SuSE, Ubuntu
Posts: 46

Rep: Reputation: 15
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.
 
Old 12-15-2005, 09:38 AM   #3
Tazzmanian
LQ Newbie
 
Registered: Aug 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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!
 
Old 12-15-2005, 09:39 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,899

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
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.
 
Old 12-15-2005, 09:41 AM   #5
Tazzmanian
LQ Newbie
 
Registered: Aug 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the input!
 
Old 12-15-2005, 10:07 AM   #6
nvargas
Member
 
Registered: Jan 2002
Location: Managua, Nicaragua
Distribution: Mandriva, SuSE, Ubuntu
Posts: 46

Rep: Reputation: 15
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS- Windows Primary, bind secondary mjstone03 Linux - General 0 09-27-2005 03:09 PM
primary - secondary DNS jsheffie Solaris / OpenSolaris 2 08-01-2005 06:55 AM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
secondary DNS server freelinuxcpp Linux - Networking 2 07-31-2004 04:31 AM
Primary and Secondary DNS dilberim82 Linux - Networking 3 07-13-2001 10:50 AM


All times are GMT -5. The time now is 06:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration