Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Servers
Reload this Page DNS for a backup webserver
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Servers Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Reply
 
Thread Tools Display Modes
Old 05-11-2008   #1 (permalink)
kermit_the_fr0g
Just Joined!
 
Join Date: Dec 2006
Posts: 22
DNS for a backup webserver

I have a webserver, lets call it example.com, IP 1.2.3.4. It hosts a few dozen domains, and also acts as a DNS server.

In another city I have a backup server - example1.com, IP 4.3.2.1 . My intention is to mirror the main server. If the main server goes down, I update the DNS for each of the hosted domains (to set the nameservers to example1.com). Example1.com then returns 4.3.2.1 whenever a client looks up one of the hosted domains. In other words, my hosted domains become 'live' on 4.3.2.1

With me so far?

The downside to this is that I'd have to manually update the DNS settings for each of my hosted domains (and many are with different registrars). So I wondered if the following scenario would work:

For each of my hosted domains, I set example1.com as the primary DNS, and example2.com as the secondary. Both DNS servers return different results - eg if I query mydomain.com at example1.com, it returns 1.2.3.4, if I query it at example2.com it returns 4.3.2.1. Since I don't want users hitting example2.com while example1.com is up and running, I disable BIND on example2.com. If the user's resolver queries example1's NS , all is fine; if it queries example2's NS, it doesn't receive an answer, so tries example1, and again all is good.

If example1.com goes down. I bring BIND up on example2.com. If the user's resolver queries example1.com, it gets no answer, and queries example2.com. Or it may just query example2.com first - either way, it gets the 4.3.2.1 IP as the answer.

Are there any drawbacks to this method?
kermit_the_fr0g is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 12:48 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0