Fix Corrupted named.conf in cPanel

Sometimes named.conf gets corrupted on cPanel server.

Here is the way to fix that in cPanel servers.

First, move the corrupted named.conf using the following command

root@cpanelserver[~]# mv /etc/named.conf /etc/named.conf.bak

Now, execute the following cPanel script to rebuild the named.conf

root@cpanelserver[~]# /usr/local/cpanel/scripts/rebuilddnsconfig

And restart the named service:

root@cpanelserver[~]#/etc/init.d/named restart

Server's named.conf is now rebuilt and operating as normal.

Was this answer helpful?

 Print this Article

Also Read

Create Alias Domain in cPanel

This article outlines how to create an Alias Domain in cPanel Adding a Domain Alias To add a...

Guide to Domain EPP Codes

EPP Codes are used by Domain Registries to signify the status of domains listed within the...

Push Domain to Existing RAD WEB HOSTING Account

This article demonstrates the method for Pushing, or Transferring, a domain name to an existing...

Install WHMCS Reseller Module

This is a guide to Install the WHMCS Reseller Module that is available for free with purchase of...

Removing cPanel Accounts with /scripts/removeacct Script

The /usr/local/cpanel/scripts/removeacct script terminates cPanel accounts from the command line....