• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

Failover Backup Web Server

Hi All

We have a Web Server that hosts various websites, and we are currently building a Disaster Recovery site for Failover.

My Question is if we ever need to failover to the Disaster site which would have a different IP Address, is there some way that you can have two A records pointing to WWW that if one does not respond then it would try the other, Similar to using two MX Records

John
0
pepps11976
Asked:
pepps11976
  • 2
1 Solution
 
KimputerCommented:
A browser does not know anything about preferences of a DNS host record.
So situation with the DNS record as you described
A:
both servers are online, one server not synced with the other.
Client: sometimes get old website, sometimes gets new website
B:
only main server online, backup not online.
Client: sometimes gets a time out problem, sometimes gets the main site
C:
main server knocked out, backup online
Client: sometimes gets a time out problem, sometimes gets the backup server

If you keep the DNS record with only the main server:
A:
main server problem, backup server online. DNS record update to point to new IP.
Client will get timeout problems, unless the DNS is propagated properly in a timely fashion
B:
main server problem backup server online with the IP of the main server
Client will have the backup server the moment you plug in the cable (or changed the IP number), if needed, change IP or unplug the cable from main server, if not a network failure, but a software failure.

So as you can see, I prefer the last method. When main server goes down, change the IP numbers so the backup server will have the original main server's IP.
0
 
pepps11976Author Commented:
I forgot to mention each server is at a different site, so although I would be able to give backup server internal ip the same, the external will be different

john
0
 
KimputerCommented:
Whooops, then prepare your DNS entry for a really short TTL, like 300 (5 minutes). When the failure happens, you will have about a 5 minute outage AFTER you change your DNS.
So, notice failure, DNS edit IP, 5 minutes later requests will arrive at the backup server
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now