ndc: connect failed: connection refused

xWho

Well-Known Member
Apr 23, 2003
112
0
166
Should I be seeing this:

ndc: connect failed: connection refused

In the output of WWWAcct 7.0, when I create a new account?

+===================================+
| New Account Info |
+===================================+
| Domain: etc.bz
| Ip: 69.57.132.80 (n)
| HasCgi: y
| UserName: etc
| PassWord: XXXXXXXXXXXX
| CpanelMod: x
| HomeRoot: /home
| Quota: unlimited Meg
| NameServer1: ns1.rackshack.net
| NameServer2: ns2.rackshack.net
| NameServer3:
| NameServer4:
+===================================+
User etc added
Keeping Shell Access (y)
Copying skel files from /root/cpanel3-skel/ to /home/etc/
Using redhat 7.1/mdk 8.0
Using new quota support
(uid 320 0 0 ):
Filesystem blocks soft hard inodes soft hard
/dev/hda3 8 0 0 3 0 0
Name Virtual Host already exists
Added Entries to httpd.conf (noip)
Added DomainAlias Entry
Added Named Entry
Added Named File
Restarting NameServer
Restarting apache
Ftp Password Files synced
Vhost Passwords synced
ndc: connect failed: connection refused
skip CONTACTAIM (2) [3]
send to CONTACTEMAIL (3) [3]
skip CONTACTPAGER (1) [3]
skip CONTACTUIN (2) [3]
wwwacct creation finished
Account Creation Complete!!!


cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:
 

Darren

cPanel Developer
Staff member
Dec 26, 2001
1,956
0
391
Houston, TX
you might try /scripts/fixndc .
does `ndc status` work from the shell ? Make sure the rndc-key's match (both in content and name) in /etc/rndc.conf and /etc/named.conf

cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:
 

xWho

Well-Known Member
Apr 23, 2003
112
0
166
Ok that seems to have helped...

Would that have been causing "www." not to work at times and other weird DNS and nameserver problems??

cPanel.net Support Ticket Number:
 

B12Org

Well-Known Member
Jul 15, 2003
691
1
168
Seattle Washington
cPanel Access Level
Root Administrator
yes. Ndc is responsible for Bind (which is DNS), which also controls the name server and could wreak some havoc on name resolution.

cPanel.net Support Ticket Number:
 

jtcotton

Registered
Oct 23, 2003
1
0
151
ndc problem

I tried reinstalling the rpms, runing the fixndc scripts and none of that worked. Zones were still being added but I was getting those anoying ndc errors. This fixed it.

All I had to do is this:

In /etc/named.conf I didnt have the following lines. Once I added them, it worked great.

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};

For some reason this wasnt added automatically but when I added it, all of the ndc problems went away.