‘rndc : connection failed : connection refused’ is a common error occurred in cpanel. Inorder to get the name servers work properly we need to eliminate this error. Elimination of this error is a simple process which takes only a few minutes via cPanel /scripts..
The steps to solve the issue is as follows :
1. Login to your server as root via SSH
2. Run: /scripts/updatenow
3. Run: /scripts/fixrndc
The above steps should fix most of the cases, but if it does not, do follow 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/fixrndc
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)
If you require help, contact SupportPRO Server Admin
