Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So far I use the nameservers like this

ns1.example.com
ns2.example.com
.....

Let say hosting server under the above nameservers is down. Can we update NS dynamically? I mean

ns1.example.com (start checking)
ns2.example.com
ns3.newexample.com (when 1,2 failed)
ns4.newexample.com

enter image description here

I can insert any number of NS in my domain Panel but what is the use? Is that for what I am searching?

share|improve this question
add comment

2 Answers

If dynamic updates for your domain 'example.com' are allowed, you could have the IP address changed. Problem is, that it takes some time for other servers to pick up the new address because of caching. The TTL (Time-To-Live) of the 'NS' entry sets how long an IP address can be cached.

I would advise against it and instead use multiple servers behind a load-balancer.

share|improve this answer
add comment

You can't add 4 nameservers in a "fallback" configuration with a registrar. The order that the nameservers are looked at is entirely arbitrary, as it is designed that way for load balancing purposes.

It is probably unwise to dynamically update DNS servers, as this information should generally have a long TTL, and will cause issues with registry settings etc.

Depending on what you are trying to do, you might be able to get away with having a set of reliable nameservers and then dynamically redelegate the subdomains NS records, although it would be more efficient to re-delegate the A records directly.

(Also, this is probably not the best place to ask for DNS advice - I asked a similar, albeit more complex version of this question, and was given incorrect information. You may have better luck at serverfault.com. Before migrating it though, you will probably need to provide a better description of exactly what you are trying to do and what you mean, ie define "Update Dynamically", how you plan on updating it dynamically and advise why you are looking to update nameservers dynamically rather then A records )

share|improve this answer
add comment

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.