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

Redirect HTTP Requests to HTTPS Using .htaccess

Redirect All Traffic to HTTPS To redirect ALL http requests to https, add the following lines to...

Slow WHMCS Domain Spinner Whois Lookup

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