How to fix a corrupted named.conf in WHM/cPanel

ometimes named.conf gets corrupted on cPanel server.

You can see that by creating a DNS report with http://massivedns.com and your nameservers records do not have any IP addresses listed .

Here is the way to fix that in cpanel servers.

First of all move the corrupted named.conf using the following command

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

Now simply execute the 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

All should be fine again

Looking for a stress-free VPS hosting? sign-up for one of ours at https://my.ynetinteractive.com/cart.php?gid=10

  • 1 Пользователи нашли это полезным
Помог ли вам данный ответ?

Related Articles

How To Change cPanel Default Time Zone

The .htaccess file is a hidden text file within your hosting account that can be very powerful....

How To Restore a Home Directory Backup in cPanel

In this article I'm going to show you how to restore a partial home directory backup in cPanel....

How to Create a MySQL Database in cPanel

When you create a database, many users are unaware that there are several other items that you...

Install SSL certificates with cPanel SSL/TLS Manager

Enable SSL/TLS Manager in WHM for cPanel users Before using the SSL/TLS Manager as a cPanel...

5 Important Things to Consider When Choosing a Domain for Your Business or Website

When first setting up any website, one of the hardest — but most important — things to decide is...