Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a website which I monitor for downtime through Host Tracker. I have setup a backup server as well to point the A record of the main website to the backup server in case of any downtime.

These two servers are from 2 different providers so if one goes down I can quickly act and point the A record to another provider.

The problem is what if this happens over the weekend or midnight. Is there anyway to do this automatically?

This site does not have any email, MX record is just the A record.

share|improve this question
    
That setup works great for scheduled downtime, but not great for unexpected outages. Don't make the mistake of adding multiple A records - this often results in round robin DNS results, which is ok for load balancing static sites, but will not provide resilience! For MX records however, multiple records pointing at multiple mail servers do give resilience. –  dunxd Aug 16 '12 at 12:22

2 Answers 2

Some of the better featured DNS providers offer this as a service. EasyDNS is one such company -- their 'Pro' service is something silly like $55/year and provides many features in addition to what they call Failover DNS. You will need to transfer the management of the domain to their nameservers, though.

More details can be found here.

(disclaimer: not affiliated with them; have found their Secondary DNS service to be useful, but never tried their Failover DNS)

share|improve this answer

A load balancer can do this. Google global load balancer. One or both of your hosting companies may offer this as a service.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.