How to rebuild named.conf file on cPanel server

You can have a lot of errors like below inside your logs which indicate a broken named.conf file

Apr 14 08:32:17 server1 pdns_server: Backend reported condition which prevented lookup (Zone for ‘sub.domain.com’ in ‘/var/named/sub.domain.com.db’ temporarily not available (file missing, or master dead)) sending out servfail

Backup your current named.conf… Read the rest