How to FIX cPanel/WHM RNDC Error
bob on April 9th, 2008
You may face cPanel/WHM RNDC error, you need to fix the NDC error before your name servers work, the RNDC error is normally common now however you can easily fix it with couple of steps as metntioned below;
Fixing RNDC error in WHM/cPanel (ndc: connection failed: connection refused)
It is somewhat a common occurrence in cPanel to receive such an error as rndc:
connect failed: connection refused
To get your name servers working, you will need to get rid of this error, it
is quite a simple fix and can be completed in a few minutes via the
standard cPanel /scripts, check these following steps;
1. Login to your server as root via SSH
2. Run: /scripts/updatenow
3. Run: /scripts/fixndc
This will fix your problems some of the time, but if it does not, do the
following steps:
1. Login to your server as root via SSH
2. Run: vi /etc/rndc.conf (or vi /etc/namedb/rndc.conf on FreeBSD)
replace all instances of “rndc-key” with “rndckey”
3. Run: vi /etc/named.conf (or vi /etc/namedb/named.conf on FreeBSD)
replace all instances of “rndc-key” with “rndckey”
4. Run: /scripts/fixnamed
5. Run: /scripts/fixndc
6. If you received an error in the last step, run /scripts/fixndc another
time.
7. Restart named (on RH this is service named restart)
Hope this will fix the problem, in case if you have still any problem, you should consider visit the cpanel forums, or contact directly to the cpanel technical support for more help or assistance.



