Fix Corrupted named.conf in cPanel Server

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

The named.conf file is the configuration file for BIND nameserver. In certain circumstances, this file may become corrupted and the following steps can be taken to restore it to a functional state.

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

Execute the following command as root user:

$ /etc/init.d/named restart

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

Launch 100% SSD Rocky Linux VPS from $2.49/mo!

  • cpanel scripts, named, corrupt file
  • 186 Users Found This Useful
Was this answer helpful?

Related Articles

Guide to Domain EPP Status Codes

EPP Status Codes are used by the Domain Registry to signify the status of a particular domain...

Addon Domain Vs Alias Domain

The table below lists some key characteristics of Addon Domain and Alias Domain....

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Disable Network Manager on CentOS 6

This article will provide the steps to disable Network Manager in CentOS 6. Network Manager is...

Video: How to Setup Domain Redirects in cPanel

This video tutorial provides Step-by-Step instructions how to setup domain redirects in cPanel...