Web Hosting Talk







View Full Version : Problems with bind/ndc


bert
03-17-2002, 04:19 PM
Hi,

I am having problems with ndc. ndc stopped working completely without reason on one of the servers, when I do ndc reload, it hangs for about 5 minutes, and then comes back with the error" rndc: connect: timed out":

root@server17 [~]# ndc reload
ndc: connect: timed out


This is a cpanel box and I have run /scripts/fixndc, I have also checked /etc/rndc.key and /etc/rndc.conf and everything appears to be fine. I have placed "nameserver 127.0.0.1" in /etc/resolv.conf , but have tried without it as well. Still it times out and does not do anything.

Any thoughts or ideas are appreaciated!

Thanks.

allan
03-17-2002, 11:45 PM
What version of BIND are you running?

If this is a Linux box, have you tried running:

/erc/rc.d/init.d/named start ?

bert
03-18-2002, 01:47 AM
Hi, thanks for the reply. I have managed to fix it, it was actually something very stupid, the /etc/hosts file had a wrong entry for localhost therefore ndc could not connect, it was actually trying to connect to another IP address instead of to 127.0.0.1. Maybe one of the cpanel updates screwed up the file, who knows, but it is now working.

Thank you though :)