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.

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

Related Articles

Video: Add Subdomain in cPanel

This video tutorial provides Step-by-Step instructions for adding a subdomain in cPanel Shared...

Remove a Service from ChkServd Monitoring for cPanel Servers

This guide requires root user account in server. In some circumstances, ChkservD cPanel...

How to Edit Zone File and Setup DNS Forwarding

To perform DNS forwarding, change your zone file, (MX, A-Records & CNAME) using the following...

Assigning a Dedicated IP Address to a Subdomain using WHM

To assign a dedicated IP address to a subdomain, perform the following steps: Step 1: Add the...

Update Nameservers for Domains Registered at GoDaddy

After signing up for a hosting account, you will receive a Welcome email containing important...