?
Solved

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

Posted on 2015-01-25
3
Medium Priority
?
113 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 2000 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

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

Question has a verified solution.

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

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

771 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