QUOTE(nightfox @ Dec 28 2006, 05:51 AM)

Hey,
I'm not sure the technical term, but you know how domains have primary and secondary name servers? Well, I know that when you go to a domain, it queries NS1.ASTAHOST.COM (for example if you were hosted here) and if NS1 is down, it goes to NS2. Well, what I have a web server running on my network and what I'd like to do is have it setup with a "Site Temporarily Down" message and then if the server goes down for example.com, NS1 & NS2 also go down, have it redirect to a third DNS server to redirect it to the server on my network with the "Site Down" message.
How do I do this?
Thanks!
I'm not sure where this belonged, but please move it if you feel it belongs somewhere else!

[N]F
Hey Nightfox,
Theoretically it’s a sound idea but it would not work. See NS DNS propagation works by searching the fastest server. This is usually done by sending a ping request to the NS. The fastest readout becomes the default NS. See NS1 or NS2 does not mean it’s the first and second NS it is just a name. So my just adding two additional name servers would only mess your site up. You would see your website constantly going from your website to the backup site. Hope that makes sense.
So what can you do?
If you have your own house server and have your own Name Servers you could register them into your domain Name Servers setup account and just turn of your home server. That way, when the DNS pings out your NS they would not exist. Now when your hosting account goes down you would just have to turn on your home server.
Wait but you want them to start automatically right?
Well you could probably find a free or paid service which could contact you when your server is down (Search Google). I have done this several years ago and don’t know if it can be repeated again. I had my website monitoring service send me an e-mail that the server was done. Then I created a script to execute a batch script if an e-mail was send from a certain e-mail. The batch script would then initiate my apache service. That’s all I did.
Hope this helps, it’s a great idea but it takes a lot of work. Even though I did this on a windows system, I recommend to use a Debian or any other great linux distribution.
Comment/Reply (w/o sign-up)