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

Video: Setup Email Forwarder in cPanel

View our Step-by-Step Tutorial Video for Setting up an Email Forwarder in cPanel Shared Hosting.

Create Site Backup Using Backup Wizard

For new users of cPanel the easiest method of backing up your site is to use the Backup Wizard,...

Push Domain to Existing RAD WEB HOSTING Account

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

Video: How to Enable Spam Protection in cPanel

This video tutorial provides Step-by-Step instructions for enabling spam protection in cPanel...

How to Create a Subdomain in cPanel

A subdomain is a subsection of your website that exists as a subdirectory in your public_html...