Web Hosting Talk







View Full Version : ndc: connect: connection refused


MCHost-Marc
09-02-2001, 12:52 AM
We got a new server up and running today and everything, including add/edit/remove DNS zones and BIND is working, but it keeps showing "ndc: connect: connection refused" in almost every task in WHM that involves DNS or BIND.

Any ideas why?

Collecting Domain Name and IP....
User: domain
Domain: domain.com
Cleaning passwd,shadow,group....Done
Removing User....Done
Removing Group....Done
Removing Named entry...Done
Removing entries from domainalias files....
Removing entires from named.boot file....
Removing localdomains entires....
Removing sendmail.cw entires....
Removing HTTPD conf entry....
>
> ServerAlias www.domain.com domain.com
> ServerAdmin webmaster@domain.com
> DocumentRoot /home/domain/public_html
> BytesLog domlogs/domain.com-bytes_log
> ServerName www.domain.com
> CustomLog domlogs/domain.com combined
> ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
>
Removing PROFTPD entry.....
Adding it back to ipaddrpool....Done
Removing Control Panel file....Removing Proftpd File....
KillDNS 0.1 (c) DarkORB Communications Inc.
domain.com -> deleted
ndc: connect: connection refused
Done
Ftp Password Files synced



Attempting to restart bind

rndc: connect: connection refused
bind status bind did not return a status report

bind started ok

MCHost-Marc
09-02-2001, 12:18 PM
Resolved. :D

netserve
09-02-2001, 04:06 PM
As I don't use WHM I wouldn't know where to start with this, but I'm sure that other users may be interested to know what the problem was and how you solved it. Something you did wrong, a bug, or something else?

Mike Shanks
09-02-2001, 06:21 PM
the key to this problem is insuring you have the key statement in /etc/rndc.conf i s placed ion /etc/named.conf before the control statrment for the key


that will ensure ndc can connect to its allocated prot

Mike

eSiteHost
09-02-2001, 06:47 PM
Hi

Kiwi: I've got the same problem and was wondering how you fixed it?

Thanks

Justin

stirdal
10-07-2003, 05:15 AM
What is NDC? Removing Named entry...test.com -> deleted
ndc: connect failed: connection refused
Done
What is NDC? I've gotten some other errors about it before too.

How do I fix that?
(iF YOU HAVE cpanel INSTALLED ON YOUR SERVER)

Login to ssh with root and type /scripts/fixndc

The rndc listening port is listened to by named. rndc is a remote control program for BIND. If BIND/named isn't running, there's nothing listening for a connection from rndc.
In the case of "service --status-all", rndc is being called to check the status of named.
Becuase named wasn't running, there was nothing there
for rndc to connect.

Extract From:

http://forums.cpanel.net/showthread.php?s=&threadid=7192&highlight=ndc+connect+connection+refused


Thanks for your "support" :angry: MCHost-Marc

sprintserve
10-07-2003, 07:28 AM
Well, they did fix it...