2

For our local dev server, we routinely add and remove name alias records in our BIND/named server for our local network domain. I usually do this manually through Webmin, just out of convenience. But I do it so often it's annoying and I would imagine it could be automated.

Is there someway to do this easily from the command-line using bash scripts? Ultimately, I'm looking for a way to add, remove and rename name aliases to the server.

And I'm hoping for something a little better than grepping the bind config file and searching/replacing...

Khaled
  • 35,688
  • 8
  • 69
  • 98
Jake Wilson
  • 8,494
  • 29
  • 94
  • 121
  • 4
    Setup dynamic updates, and update via nsupdate. See: http://serverfault.com/questions/324741/how-do-you-setup-a-dns-server-in-order-to-be-able-to-add-records-on-the-fly – Zoredache Dec 06 '11 at 22:40
  • Never knew that tool existed. Thank you! If you want to properly answer below I'll give you credit. – Jake Wilson Dec 07 '11 at 18:36

1 Answers1

4

The method I generally use is to setup the zone for dynamic updates, and then use nsupdate.

I have provided more details in this answer.

Zoredache
  • 128,755
  • 40
  • 271
  • 413