DNS Changes only apply when i restart named

razR

Member
Jul 18, 2012
12
0
1
cPanel Access Level
Root Administrator
Hi There,

This is my first time using cPanel/WHM and i like it very much, however when i add a (sub)domain to my server i need to restart NAMED manually before it actually applies.

When i add a (sub)domain (example: google.nl) and i PING it on the webserver itself it says:

ping google.nl
ping: unknown host google.nl

And when i do 'service named restart' it resolves perfectly.


However also when i stop CSF & Iptables it updates it again but it doesnt help always.
 
Last edited:

razR

Member
Jul 18, 2012
12
0
1
cPanel Access Level
Root Administrator
UPDATE
When i do the fixndc command i get the following

Code:
 /usr/sbin/rndc status failed: WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)rndc: connect failed: 127.0.0.1#953: connection refused
\

and

Code:
Error reloading bind on web: rndc: connect failed: 127.0.0.1#953: connection refused
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

The most important error message in this case is:

Error reloading bind on web: rndc: connect failed: 127.0.0.1#953: connection refused
There are several potential causes of this error. Feel free to submit a ticket so we can take a closer look:

Submit A Ticket

You can post the ticket number here, and we can update this thread with the exact cause of the problem after the issue is resolved.

Thank you.
 

radeonpower

Well-Known Member
Jul 23, 2009
159
4
68
Iceland
cPanel Access Level
Root Administrator
I had this problem few days ago.

rndc failed to start until I disabled/stopped the 'portreserve' service. You might also need to delete the /etc/named.conf.cache file, new one will be generated automaticly.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
I had this problem few days ago.

rndc failed to start until I disabled/stopped the 'portreserve' service. You might also need to delete the /etc/named.conf.cache file, new one will be generated automaticly.
If you would like to determine if that's the cause of this issue, please post the output of the following command:

Code:
# grep portrelease /etc/init.d/named
Depending on the version of CentOS you are using, you should see output such as:

Code:
 [ -x /sbin/portrelease ] && /sbin/portrelease named &>/dev/null || :
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
I'm using CentOS 6.3 and this command did not output anything.

[email protected] [~]# grep portrelease /etc/init.d/named
[email protected] [~]#
If you are using CentOS 6.3, you can run the following commands to resolve this issue:

Code:
# mv /etc/init.d/named /etc/init.d/named.bak
# yum reinstall bind
You should then see the expected output when running:

Code:
# grep portrelease /etc/init.d/named
Example output should be:

Code:
[ -x /sbin/portrelease ] && /sbin/portrelease named &>/dev/null || :
If you see this output, you can then run:

Code:
# /etc/init.d/named stop; /etc/init.d/portreserve restart; /etc/init.d/named start; netstat -plan | grep 953 | grep named
This should resolve the issue, and you should no longer receive connection refused errors when reloading rndc.

Thank you.
 

ceylon

Member
Nov 15, 2009
17
0
51
Got the same error on fresh installation of the CLOUDLINUX 6.3 x86_64 xenhvm
Re-installed the system. But same error.

Only resolve after re-installing bind.

Thanks for the help and its really helpful.