Get Free Linux Server Security, Performance & Troubleshooting Tips

How to rebuild Bind configuration on cPanel

Some times DNS servers on cPanel get corrupted, all the zones do not respond to queries or the service simply doesn’t start at all after restarting the Linux service. That’s when you have to rebuild Bind configuration on cPanel to get all the dns queries working again.

How to Rebuild Bind configuration on cPanel

In order to fix this corruption on the DNS server we will first create a backup of the current dns zones configuration, and then rebuild the DNS server using a cPanel tool called ‘rebuilddnsconfig’.

Create a backup of the current configuration

mv /etc/named.conf /etc/named.conf.bak -v

Rebuild your DNS server and zones


Restart the DNS server to apply changes:

/etc/init.d/named restart

All done, as you see, it’s easy to rebuild Bind configuration on cPanel and can be done within a few minutes. After this your DNS server should be working again, if not, check out if you have enough free disk space in your root and /tmp partitions. You may also open a cPanel ticket to get official support from cPanel tech team to investigate your issue.

Further reading:

About the Author: Esteban Borges

Experienced Sr. Linux SysAdmin and Web Technologist, passionate about building tools, automating processes, fixing server issues, troubleshooting, securing and optimizing high traffic websites.

Leave a Reply

Your email address will not be published. Required fields are marked *