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.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What virtualization software do you use?

We use Parallels Virtuozzo Containers (PVC).

Why is my VPS constantly crashing?

There are several causes to why you may not be able to access your VPS. Some users often mistake...

What kind of support do you offer?

We offer Fully Managed VPS packages. For a list of items that we support, please refer to the...

What kind of software can I install on my VPS?

As you have full root access, you may install any compatible software on your VPS. However, any...

What is Virtuozzo?

Virtuozzo is the VPS technology created by SWsoft which allow us to create isolated VPS servers...