June 19th, 2011, 06:08 PM
Fastest/most efficient way to restart bind9
All I'm changing is the IP address of the DNS server, but I may be doing that a lot so is there a faster way than "/etc/init.d/bind9 restart"? I'm aiming at having as little down time as possible.
Thanks in advance
June 19th, 2011, 09:32 PM
How much downtime do you normally get with that method? If you have rndc, you can reload specific zones. That should be quicker than a full restart.
June 20th, 2011, 08:04 AM
I haven't actually tested the time down. I just thought there would be a more efficient way than restarting an entire process.
Originally Posted by CaptPikel
Can you give me more information on mdc? I try googling a little and didn't seem to find anything of use.
June 20th, 2011, 11:26 AM
Restarting BIND may be easier and quicker. The rndc (remote name daemon controller) is a tool for controlling and manipulating named. It's very useful normally for large servers where restarts can take upwards of a minute. I have two zones on my test server and a restart is in the blink of an eye. I have rndc but never rarely use it since restarts are quicker and easier. How many zones do you have?
Here's a decent review of rndc:
The main reasons I use rndc is for troubleshooting. Restarting named dumps the cache, however the command "rndc dumpdb" dumps the current cache to a text file so you can look at it and troubleshoot.
June 20th, 2011, 11:33 AM
I'm only running one zone, and it's just for testing purposes. With the way it sounds, I'll just stick with running the restart command and won't look into mrc. If it's not going to take much to restart, I'll be fine.
I appreciate the help and provided information!
June 20th, 2011, 05:58 PM
Yeah, with one zone you should be fine with a restart as far as downtime is concerned. The rndc tool is an option but probably not needed in your case. It can make things more complicated and less predictable in some cases.