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

Does anybody know how to update a load balanced DNS entry on a BIND9 server using nsupdate?

Everything in DNS is setup and works, I can happily update my name server using nsupdate but I can't find any syntax to allow me to add multiple endpoints to an entry. For example, I have an entry such as:

www           IN A
              IN A
              IN A

The is going down for maintenance and I want to remove it from the DNS record in advance, I would like to run:

nsupdate [keys etc]
> server
> update delete
> update add 1 IN A A
> send
> quit

Obviously manually editing the DNS file works fine, but I'd like to do this over nsupdate. If anyone can provide a way of doing this I'd be very grateful, thanks.

share|improve this question
Having more than one CNAME violates RFC. Does that even work? – Michael Hampton Aug 25 '13 at 14:06
I think you may well be right, I'll change that to A records instead – Yossarian Aug 25 '13 at 19:33
up vote 1 down vote accepted

Just use multiple update add lines.

update add 3600 IN A
update add 3600 IN A
share|improve this answer
I'm an idiot! Thanks. I only tested it with CNAMEs... – Yossarian Aug 26 '13 at 6:55

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.