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

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Disable Network Manager on CentOS 6

This article will provide the steps to disable Network Manager in CentOS 6. Network Manager is...

How to Find the IP of cPanel/WHM Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors. Find...

Uninstall WHMXtra on cPanel Server

This article provides a quick and direct guide for uninstalling the WHMXtra plugin from a...

How to Customize cPanel Installation

This article provides a guide for customizing a cPanel server installation, using the...