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'm trying to think through how to change the A record for a website I host in the context of disaster recovery.

I have the Apache and mySQL replication working, and tested locally by changing my hosts file. Now the remaining question is: what about DNS?


Importantly, is the master. And the relevant A record is:

website IN A

Now let's say my campus is down. The web server and both DNS servers are FUBAR.

How can I change the A records for if my master is down? (Asking to become the master in case of disaster is highly impractical...)

Could I:

  1. Ask the DNS folks at to delegate records to another server (say, while still delegating to me?

  2. Have the DNS in override my A record for

Another thing: having a hidden-master for at in advance is also currently impractical, for political/timing/PM reasons. So I'm trying to cobble together a solution to address disaster recovery for that one particular host while changing the larger status quo as little as possible : )

share|improve this question
Can you ask to do anything in case of disaster or does everything have to be set up ahead of time? – Mark Wagner May 4 '11 at 17:34
Yeah, we could but I'm afraid it would take too long... : P – André Pitanga May 4 '11 at 18:41

Given that will do nothing during the disaster I'd delegate to (or any other DNS provider). Change

website IN A


website IN NS A.B.C.D
        IN NS E.F.G.H
        IN NS I.J.K.L

where A..., E..., and I... are the IP addresses of the new DNS provider.

Set up the dns provider's servers to be authoritative for the domain and give it an A record of, being a slave, will update with this information as well.

I don't know why wolfgangsz says you have to delegate the entire subdomain.

share|improve this answer
That's what I wanted to know! – André Pitanga May 4 '11 at 21:01
It was so clear all along. Not sure why I couldn't think of it... :) – André Pitanga May 4 '11 at 21:09

Since is an A record in the zone, and the entire zone is unavailable, you would have to get the guys running DNS for to point to a different DNS server for the campus subdomain, which would then need to provide the DNS for your backup solution. Therefore in essence, your idea in 1. above is the correct one, except for the fact that they will have to delegate the entire subdomain, not just one A record.

If, however, all you want is a redirection of that website, then that could be achieved with the simple addition of that A record to the domain, although this would probably need to be done manually.

If you want this to be any sort of "hot" standby, you would need to have a hidden master for somewhere. As long as that hidden master is not pointed at by any of the live records in, nothing will happen (because nobody is querying it). The actual changes in the domain can be scripted (if the DNS folks at are willing to help you out there).

share|improve this answer
Yeah, when you say "the entire zone is unavailable" I think that's the crux of the matter. I wish there was a way for you to delegate a zone but still be able to override a record in that zone... – André Pitanga May 4 '11 at 18:42

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.