Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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...

share|improve this question
4  
Setup dynamic updates, and update via nsupdate. See: serverfault.com/questions/324741/… –  Zoredache Dec 6 '11 at 22:40
    
Never knew that tool existed. Thank you! If you want to properly answer below I'll give you credit. –  Jakobud Dec 7 '11 at 18:36

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer

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.