Bind won't work (rndc: connect failed: connection refused)
Hello,I just did a fresh CentOS 4.0 install with cPanel.
I am having a bit trouble getting named to work.
I cannot add an DNS Zone for any of my domains. It gives the the following error.
IP=xx.xx.xx.xx Bind reloading on s01 using rndc zone: [domain.com] Error reloading bind on s01: rndc: connect failed: connection refused Add Complete
When I restart the named it gives me this:
root@s01 [/]# service named restart
Stopping named:
named: already runningroot@s01 [/]#
Here is my named.conf and rndc.conf files. They look fine to mee:
named.conf
key "rndckey" {
algorithm hmac-md5;
secret "IBcB9VugSsJAijRdOYohVg==";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { "rndckey"; };
};
zone "." {
type hint;
file "/var/named/named.ca";
};
// Default named.conf generated by install of bind-9.2.4-2
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
here is rndc.conf
# Start of rndc.conf
key "rndckey" {
algorithm hmac-md5;
secret "IBcB9VugSsJAijRdOYohVg==";
};
options {
default-key "rndckey";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf
# Use with the following in named.conf, adjusting the allow list as needed:
# key "rndckey" {
# algorithm hmac-md5;
# secret "IBcB9VugSsJAijRdOYohVg==";
# };
#
# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndckey"; };
# };
# End of named.conf
I have tried to fix them via the following scripts:
root@s01 [/]# /scripts/fixnamed
root@s01 [/]#
and....
root@s01 [/]# /scripts/fixndc
Fixndc using rh9/rhes3/fedora support
Found key in named.conf ..
Found controls in named.conf ..
named.conf has already been fixed!
root@s01 [/]#
But it still wont work....and There are no error messages left in /var/log/messages.
Please tell me how to fix this problem
Thanks