WebHostPro

Well-Known Member
PartnerNOC
Jul 28, 2002
1,715
28
328
LA, Costa RIca
cPanel Access Level
Root Administrator
Twitter
O.K. I just wanted to see what is best.

Usually when a new dns entry is added we simply run:

/scripts/restartsrv bind

This kicks in the changes.

But i noticed it doesn't always reload all the entries, or at least the output it shows stops at some letter.

Does this mean it is not reloading all the dns entries or is the output message just stopped?

Also can I get the same result by just using this?

/etc/rc.d/init.d/named restart

Or is the scripts option from cpanel better to refresh bind?

Thanks for any thoughts on this.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
32
473
Go on, have a guess
If bind is correctly configured you should never have to restart it when changing or adding DNS zones. If you're finding you have to, then you should tail /var/log/messages when you make changes in WHM and watch for any named errors.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
32
473
Go on, have a guess
DWHS.net said:
Thanks, I was under the impression that restarting bind will speed up the internets dns system. Like sending a signal out, I have seen where it didn't work then after the reboot it worked right away. No errors though. I will do some more research. :confused:
No, restarting bind does no such thing. The DNS protocol does that itself with a reload of the named.conf and/or zone files and restarting bind will only end up causing problems when lookups are performed while it is restarting. That is, you're shutting down everything when bind only needs to issue a single simple update to a zone.
 

rastoma

Well-Known Member
Aug 27, 2001
158
0
316
chirpy said:
No, restarting bind does no such thing. The DNS protocol does that itself with a reload of the named.conf and/or zone files and restarting bind will only end up causing problems when lookups are performed while it is restarting. That is, you're shutting down everything when bind only needs to issue a single simple update to a zone.

If you want DNS to be updated instantly you have to reload the zones. For example when moving a domain from one server to another if you want to start forwarding DNS during nameserver changes, just simply edit a DNS entry won't instantly reload the zone (unless you're doing it from WHM).