Question : DNS failover records

Hello

I want to know how I can do the following.
Say I have "server.domain.com" which points to 123.123.123.123
What I want is, when 123.123.123.123 is down, this same record ("server.domain.com") will switch over to the secondairy IP, 234.234.234.234.

How do I so this?
I am using bind/named.

Answer : DNS failover records

three options, each with pro's and con's:

1) CNAME/A Record method:
create two records of the same type (both "server") one to each IP, this will provide round robin, each time someone access's server.domain.com they will reach one of the two IP's - this solution is less advised for failover and is better for load balancing.

2) NLB - Network Load Balancer:
A somewhat expensive device that can load the balance between a couple of servers and forward all traffic to one of them if the other is down.

3) Coding method:
server.domain.com points to a web page that forwards all/based on IP/based on a record (on the server for example from a heart beat software) to the IP.
Random Solutions  
 
programming4us programming4us