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.


Fixing rndc error in WHM/cPanel (ndc: connection failed: connection refused), Hostripples Web HostingFixing rndc error in WHM/cPanel (ndc: connection failed: connection refused), Hostripples Web Hosting
HR-ADMIN
AddThis Website Tools

Recent Posts

The Ultimate Guide to DIY Website Builders for EntrepreneursThe Ultimate Guide to DIY Website Builders for Entrepreneurs

The Ultimate Guide to DIY Website Builders for Entrepreneurs

Ah, the joys of building a website! Picture this: You're sitting there in your pajamas, coffee in hand, ready to…

1 week ago
Don’t Ignore These 11 Signs You Need a Hosting UpgradeDon’t Ignore These 11 Signs You Need a Hosting Upgrade

Don’t Ignore These 11 Signs You Need a Hosting Upgrade

Are you feeling like your website is running in slow motion? It can be frustrating when your online presence doesn't…

2 weeks ago
PrestaShop vs OpenCart: Which Is Right for Your Business?PrestaShop vs OpenCart: Which Is Right for Your Business?

PrestaShop vs OpenCart: Which Is Right for Your Business?

Are you ready to take your online store to the next level? Whether you're running a PrestaShop or OpenCart platform,…

3 weeks ago

Sitemaps: A Guide to Enhancing Online Visibility

Picture this: your website is like a fabulous party happening in the darkest corner of the internet, but nobody's showing…

4 weeks ago

Step-by-Step Guide to Implementing a CDN for WordPress

Picture this: Your WordPress site is like that one friend who's always fashionably late to everything. You know, the one…

1 month ago