Fix Corrupted named.conf in cPanel Server


This article provides a guide to fix corrupted named.conf file on cPanel/WHM servers. This guide requires root-level access and is intended for administration of cPanel VPS or cPanel dedicated servers.

Issues with named.conf File

Sometimes named.conf becomes corrupted on cPanel server.

How to Fix Corrupted named.conf Files

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

The WHM/cPanel 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, dns configuration, named, nameservers, cpanel scripts
  • 2 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Related Articles

Remove a Service from ChkServd Monitoring for cPanel Servers

This guide requires root user account in server. In some circumstances, ChkservD cPanel...

Assigning a Dedicated IP Address to a Subdomain using WHM

To assign a dedicated IP address to a subdomain, perform the following steps: Step 1: Add the...

How to Uninstall Installatron in WHM cPanel Server

This guide will show you how to quickly uninstall Installatron software from WHM/cPanel server....

How to Install Installatron in WHM cPanel Server

This guide will show you how to download and install Installatron on your cPanel/WHM server. To...

How to Install Softaculous with cPanel/WHM

This guide will show you how to download and install Softaculous on your cPanel/WHM server. To...