Fix Corrupted named.conf in cPanel Server

This article provides a resolution in case you experience a corrupted named.conf file on a cPanel server.

Move Existing named.conf

As the root user, run the following command to move your existing named.conf file:

# mv /etc/named.conf /etc/named.conf.bak

Run cPanel-Provided Script

Run the following cPanel script on your server to rebuild named.conf:

# /usr/local/cpanel/scripts/rebuilddnsconfig

Restart the named service:

# /etc/init.d/named restart

Following the restart, your server will have proper named.conf file.

Was this answer helpful?

 Print this Article

Also Read

How to Register Private Nameservers

This article will provide a guide for registering private nameservers. Locate Domain in Hosting...

Adding SPF Records and Domainkeys in cPanel

Adding Domain Keys for a Single User /usr/local/cpanel/bin/dkim_keys_install username Adding...

Disabling mod_security in cPanel

Mod_security is an apache module that helps to protect your website from various attacks. It is...

Slow WHMCS Domain Spinner Whois Lookup

Slow WHMCS domain lookups are a source of frustration for some clients, as this, in turn, leads...

Install an SSL Certificate Using the AutoInstaller Software in cPanel

This article will describe how to use AutoInstall to install an SSL certificate. The...