Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Pointing two IPs to one domain name I have setup Eg:

app.test.com IP1
app.test.com IP2

Domain name should point the the IP which ever is UP

share|improve this question
add comment

migrated from superuser.com Apr 30 '11 at 12:21

This question came from our site for computer enthusiasts and power users.

2 Answers

Its called round robin DNS - you just set them both as A type records, and it should connect to either one.

share|improve this answer
    
Does it support failover as the OP specifies he needs it to connect to whichever server is up? Does he need some kind of load balancer and/or other network hardware or software? –  Greg B Apr 30 '11 at 17:13
    
Well, if you have a load balancer, you'd be pointing your IP address at that. Considering this was a question on SU (as opposed to SF or here), that was the level of complexity i deemed appropriate for the answer ;) –  Journeyman Geek May 1 '11 at 4:08
    
But its not enough detail for anyone looking at the question here. How can you achieve the failover support? –  Greg B May 2 '11 at 8:25
    
howtoforge.com/high_availability_loadbalanced_apache_cluster i suppose with this, but i don't know the process well enough for a definitive answer. –  Journeyman Geek May 2 '11 at 9:11
add comment

The Journeyman geek is correct, this is known as round robin or poor mans loadbalancing. The siteowner normally has no control over which ip will be returned by the dns server.

Greg B

This configuration does not support failover as dns does not account for server availablity.

share|improve this answer
    
How might it be achieved? –  Greg B May 2 '11 at 8:25
    
I wish DNS allowed for weighting of all record types, MX records have had it their own way for far too long now. –  Christopher Woods Feb 17 '13 at 4:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.