Categories: Hostripples Featured

Fixing rndc error in WHM/cPanel (ndc: connection failed: connection refused)

It is quite 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 eliminate this error, it
is quite a simple fix and can be completed in a few minutes via the
standard cPanel /scripts

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)

If you are still having issues, try checking out the cpanel forums, or
contact cpanel support for more help.


HR-ADMIN

Recent Posts

Why You Should Move Your Website to Cloud Hosting?

Introduction to Cloud Hosting In today's digital world, website performance can make or break an online business. Whether you run…

1 week ago

What is a Call to Action in Marketing? Definition + Examples

In the world of digital marketing, getting attention is only half the battle. The real goal is to convince people…

3 weeks ago

Website Bandwidth: What it is and Why it Matters?

Introduction In today's digital world, understanding website bandwidth is essential for anyone running a website. Whether you own a blog,…

4 weeks ago

Will AI Replace Developers in the Future?

Artificial intelligence is changing the tech world at lightning speed. From automated chatbots to AI-generated applications, many people are now…

1 month ago

What is Bot Traffic? Easy Ways to Detect and Block It

Introduction to Bot Traffic Bot traffic refers to visits to a website that come from automated software programs rather than…

1 month ago