Fix Corrupted named.conf in cPanel server

Sometimes named.conf gets corrupted on cPanel server.

Here is the way to fix that in cPanel servers.

First, login to the server as root user and 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. Feel free to remove /etc/named.conf.bak once you have verified your DNS rebuild was successful.

  • dns records, dns zone editor, named.conf, named, nameservers, cpanel scripts
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

 Disable Network Manager on CentOS 6

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

 Getting Started with Reseller Hosting

This articles discusses some of the properties related to Reseller Hosting accounts.  What...

 How to Access Free SSL for Reseller Hosting

From within your WHM account, Navigate to SSL/TLS tab and select "Manage AutoSSL"  Domain and...

 How to backup / restore / cpmove from One cPanel Host to Another?

The best way to transfer cPanel > cPanel is to use the transfer tool: Log into the cPanel...

 How to Create an Account in WHM

This article discusses the process of creating a hosting account in WHM. Creating an Account...