-1

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?

字姓名
  • 101
  • 1

2 Answers2

0

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.

Naltharial
  • 130
  • 2
  • 8
  • 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 08: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
0

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.

Alnitak
  • 21,191
  • 3
  • 52
  • 82