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 Users Found This Useful
Was this answer helpful?

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...

Enable Lets Encrypt AutoSSL Provider

This article refers to cPanel version 84 and later. Enable Let's Encrypt for AutoSSL Follow...

How to Fix Incorrect cPanel Account Quotas and Disk Usage

This article will provide a step-by-step guide to fix incorrect account quotas and disk usage on...

How to Uninstall Installatron in WHM cPanel Server

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