Friday, October 16, 2015

named service not working centos 6 cpanel


Today I have faced an error while restarting named it says that

WARNING: Key file /etc/rndc.key exists, but using default configuration files /etc/rndc.conf
rndc: connection failed: 127.0.0.1#953: Connection refused


so I have checked the forums and find a solution.


You need to remove all packages that is related to bind, for that first backup your configuration file

mv /etc/named.conf /etc/named.conf.bak

Then do

yum remove bind*
yum install bind*
service named restart


As the named service is reinstalled the entries in the /etc/named.conf must be rebuilded

for cpanel type

/usr/local/cpanel/scripts/rebuilddnsconfig

The new named.conf will listen only on 127.0.0.1 and you need to edit the configuration to change it to your ip.

Then do

service named restart



Thats all folks :)

No comments:

Post a Comment