Solved

One domain, two IP's, two A - records. How to do failover?

Posted on 2015-01-25
3
108 Views
Last Modified: 2015-02-04
Have a web server hosted locally. The DNS is hosted with Godaddy.

I have two IP addresses I want it to point to, with priority on one over the other. I added two A records but it points to the IP randomly.  I want it to try one first and if its down to try the other. Is this possible?
0
Comment
Question by:hcste
[X]
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 Comments
 
LVL 63

Accepted Solution

by:
Simon Butler (Sembee) earned 500 total points
ID: 40570121
Not with DNS.
There is no concept of service availability with DNS.
You need to use a load balancing service. There are a couple of cloud based load balancing services around, so try one of those.

Simon.
0
 
LVL 37

Expert Comment

by:Mahesh
ID: 40570153
DNS offers round robin as default load balancing \ failover mechanism which is best suite for small load but not very efficient in web servers with large traffic

By design, when DNS server answers request, also provide a Time To Live (TTL) for the response you hand out. It means it is telling clients (may be end clients or other dns servers) that you may store this answer and use it for x minutes \ seconds before checking back with me".
This means if one of the IP got down, Until the TTL expires clients will connect to the dead IP, once TTL expires client will get connected to live server

Hence either you shorten your DNS TTL value for request output
OR
As pointed out earlier, Use cloud based load balancing solution which can detect IP failure and point clients to live server
0
 
LVL 33

Expert Comment

by:shalomc
ID: 40570666
Some DNS services do offer this capability.  
For example Dyn, Ultradns and Dnsmadeeasy all have failover features that will monitor several IP addresses, and include in their answers only the healthy ones.

However, since you are on a home budget, try either NSONE starter or Route 53.
The NSONE starter free program may be ideal for you, and you can monitor a couple of IP addresses and serve DNS records based on health.
The Route 53 service does cost money, but for low traffic it is very inexpensive and there is no commitment like the big guys demand.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

707 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