How to fix rndc error in WHM/cPanel (rndc: connection failed / refused)

‘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)

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Custom php settings when you enable Fast-CGI

When you enable fast-cgi, there should be a custom php.ini in the cgi-bin folder of the account.*...

Disk quota exceeded: mailbox is full

Issue:Email fails with the following error message.===Subject: Mail delivery failed: returning...

Can I edit DNS records from my CPanel?

You can edit DNS records from your CPanel by following the instructions in the two CPanel...

CentOS - Hostname Change

Hostname Change There are 4 steps in a hostname change, luckily all the steps are easy....

What Is A Reverse PTR Record?

PTR record or more appropriately a reverse PTR record is a process of resolving an IP address to...

Powered by WHMCompleteSolution