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 Flush DNS Cache

Flushing your DNS cache can be useful when the information about a domain you hold is outdated,...

How to Flush DNS Cache in Windows 10

Flushing the DNS resolver cache can help resolve DNS related problems in Microsoft Windows 10....

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...

How to Register Private Nameservers

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