Computer Hope

Software => BSD, Linux, and Unix => Topic started by: milindras on April 30, 2009, 03:26:16 AM

Title: rndc: connect failed: 127.0.0.1#953: connection refused
Post by: milindras on April 30, 2009, 03:26:16 AM
Hi all,
Im having some problem with my DNS. We are using a Linux web server as one of our web server which runs some live websites.When I trying to get the status of the DNS (NAMED) it comes the following error :

[root@ns milindras]# /etc/init.d/named status
rndc: connect failed: 127.0.0.1#953: connection refused

The same error appears when Im trying to apply any changes on zone level for a selected doamin in WEBMIN. (Basically can't apply changes)

WEBMIN > Servers > BIND DNS servers > click a selected-domain.co.uk > Apply changes

NDC command failed : rndc: connect failed: 127.0.0.1#953: connection refused

I checked the rndc cofigurations & everything looks fine. I have attached the rndc.conf & named.conf file here with.

Please refer to the message log I have attached. According to logs named starts and shuts down after a while without any reason. Running ps sometimes shows named running (but not rndc) and sometimes does not.

But the server seems to be running without effecting any probelms to the sites or users.
I have been searching weeks for this problem & couldn't find a solution. And also Please note that Im bit new to Linux.

Server details :
Linux version 2.6.18-1.2257.fc5smp
Red Hat 4.1.1-1

Appreciate any help on this problem.
Thanks
regards
Milindra

[attachment deleted by admin]
Title: Re: rndc: connect failed: 127.0.0.1#953: connection refused
Post by: banjo67xxx on May 01, 2009, 12:29:46 AM
Some linux distributions include a firewall which is on by default. Have you checked to see if the linux firewall is enabled? and if port 953/53 is open?

With regards to the daemon dying, why not run named in debug mode. On my linux (SuSE 9.3) you can run named -d 9 -g which means run in foreground with all logging to the screen at debug level 9. Check out man named to see what the equivalent options are on Redhat.
Title: Re: rndc: connect failed: 127.0.0.1#953: connection refused
Post by: milindras on May 27, 2009, 03:42:19 AM
Some linux distributions include a firewall which is on by default. Have you checked to see if the linux firewall is enabled? and if port 953/53 is open?

With regards to the daemon dying, why not run named in debug mode. On my linux (SuSE 9.3) you can run named -d 9 -g which means run in foreground with all logging to the screen at debug level 9. Check out man named to see what the equivalent options are on Redhat.

Thank you for the reply. I sorted this problem. It was a permission problem.
Thanks
Milindra