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

We are considering to selfhosting for a domain. How can we provide a page to visitors in case of lines out, serverfailure or powerfailure?

share|improve this question
1  
Note that this is loosely related to this ServerFault question: serverfault.com/questions/6702 –  Justin Scott May 11 '09 at 13:20

5 Answers 5

This was asked and answered over on Stackoverflow. Summary, you can't reliably do this with DNS, but there are approaches that mess with BGP routing to accomplish this.

However, if you're just interested in handling local failures to your solution, and you are assuming your hosting company is still up and providing service, you can ask them - they may have the capability in their load balancers etc to be able to redirect to somewhere else in their environment.

share|improve this answer

You can't do this with DNS out of the box.

You could use an external DNS server which monitors the page and delivers other DNS information with a low TTL in case it cannot reach the site. BUT this will not work reliably and will also depend on the cache size of DNS servers of clients, and could cause your real site not to be reachable once it is back up due to existing DNS cache entries for the down-site.

share|improve this answer

You can use a service like DynDNS to easily change the IP a domain points to. And, they have an API too, so you could use another cheap webhost to verify when the server is down and change the IP, maybe to that same webhost where you can show a maintenance page.

Or, you can install one of the clients that automatically uses a downtime page.

And you can set a low TTL so IP changes propagate more quickly.

share|improve this answer
    
We have considered dyndns, but how reliable are they. Will it not just be a chicken/egg problem then? –  Tom May 11 '09 at 18:18
    
They're extremely reliable per my experience. Been using them for more than 5 years and zero downtime. –  Ivan May 11 '09 at 22:09

You could host your main domain on a commercial provider and create a page that shows the error message with javascript after a timeout. Then you could include a in the HTML-code. This code would redirect (an frame?) to the real page. Otherweise (javascript-timer?), the error page would be displayed

Now, can I just downvote this answer many times? ;-) Technically it would be a solution given that not so much was cleraly defined in the question. The reason to host in house might be to hook up some internal database, while the main web presence would better be on a commercial hoster.

share|improve this answer

A similar question was asked, and answered here

http://serverfault.com/questions/6702/

The short answer is, DNS is not a reliable mechanism for managing failover without significant hardware investment, or manual intervention.

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.