Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a domain name and two hosting accounts on different servers.

I would like to know can i park my domain in both hostings and point this domain's primary and secondary nameservers to these two servers, so that if one server is down, files from another server are opened?

share|improve this question

migrated from Jul 15 '11 at 7:56

This question came from our site for professional and enthusiast programmers.

your question is unclear - DNS servers host domain name information, not files. – Alnitak Jul 15 '11 at 7:28
saying server i mean my hosting server not DNS server – 字姓名 Jul 15 '11 at 7:35
That doesn't answer Alnitak's question. – womble Jul 15 '11 at 10:46
up vote 0 down vote accepted

I don't think it quite works that way. DNS servers have no way of checking whether or not your hosting is down, all they do is provide IP for domains. You could use some automated service to achieve such a goal, but I don't think the basic protocol itself is going to support it out of the box. It all depends on your DNS provider's capabilities.

share|improve this answer
i've just contacted my domain name provider and their technical assistant said that this will work just fine: if the server is faild to be reached by address provided by first nameserver the others will be used (again the order is random)! But i can't say if it is DNS-server-dependent or not. – 字姓名 Jul 15 '11 at 8:17
Either your domain name provider is lying to you, or they're answering a different question than the one you asked here. What you want and suggest in your question will not work. – womble Jul 15 '11 at 10:47
The only way that would work is if their servers are checking your hosting status and altering the DNS records, like some services do. Note that you'll still get hosed by DNS caching and TTL. – Naltharial Jul 15 '11 at 11:14

DNS does not provide (automated) fail over, it only supports load distribution.

It's technically possible to have a DNS system which polls your servers to check which are working, and then directs traffic accordingly, but you won't get that from an off-the-shelf DNS hosting provider.

In any event, the DNS protocol simply isn't designed to handle rapid changes based on network level faults.

share|improve this answer

Your Answer


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.