How to fix a 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 of all move the corrupted named.conf using the following command:

mv /etc/named.conf /etc/named.conf.bak

Now simply execute the cpanel script to rebuild the named.conf


And restart the named service:

/etc/init.d/named restart

All should be fine again.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix defaultwebpage.cgi on a webserver

Running the following commands solves the above problem:   /scripts/updateuserdomains...

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

Install Let's Encrypt SSL in cPanel/WHM

Let's Encrypt, a valid, open-source license that offers free SSL for your domains. The Let's...

Fix Email Issue on a server using the MSFE

To solve the problem of not sending/receiving email on a server using the MSFE / Mailscanner...

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...