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
  • 160 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Related Articles

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

Guide to Domain EPP Status Codes

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