Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


How to setup main and backup web server?

Posted on 2004-10-23
Medium Priority
Last Modified: 2010-04-20
I have 2 workstations running identical web pages/sites. My intention is to have a backup to the main machine.

1) How to set up the DNS to do the sharing of the web servers? I just need to enter 2 IPs with the same site name? or
2) Can I use the main DNS server to define the main machine IP? and the backup DNS server for the backup machine IP?
3) How to check whether the main server is down and the backup server has to take over?

The OS is Fedora. Web site is www.abc.com, IP for the main machine is a.b.c.d and IP for the backup machine is aa.bb.cc.dd. Really appreciate if someone can show the zone files including MX, A, CNAME records, etc.


Question by:ccjong
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 33

Accepted Solution

humeniuk earned 1500 total points
ID: 12390309
Unfortunately, it's not quite as simple as setting up the proper DNS records.  The first thing you have to do is set up data mirroring so that the data is copied to your backup server automatically.  The second element is DNS Failover, which monitors your primary server and if it goes down, automatically starts giving out the IP for your backup server.

Here is a good thread that discusses this in more detail: www.experts-exchange.com/Web/Web_Servers/Q_20976136.html.

If you're looking for a simpler solution, ZoneEdit (www.zoneedit.com) offers a failover service.  It's not perfect, but it's probably your cheapest option.  From their website:

"Failover monitoring service works when you have two or more web servers running the same (or similar) web site.

    * First, you need the IP address for your domain, and get it working - then you add the failover monitor.
    * The failover monitor watches your web server(s) by hitting a URL you specify and looking for text in the results.
    * When the system detects that one of them is having an error, and the others aren't, it pulls the IP address out of the list.
    * If none of the IP's are responding and you have a failure IP/URL defined, then it points the site to the failure IP/URL.
    * If the system can't get to all of the IP's then it assumes that the fault is it's own connection - and it takes no action.
    * If any of your IP's come back online they are restored

This effectively and safely keeps your site online - even if one of your web servers is down.

The average failure detection time is 10 minutes. This time varies depending on the speed of your site and the nature of the failure. Recovery times are faster, averaging 5 minutes. "
LVL 33

Expert Comment

ID: 12390318

Author Comment

ID: 12392786
Thanks for the help.
LVL 33

Expert Comment

ID: 12394944
Glad to be able to help out.  Good luck.

Featured Post

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question