Sometimes named.conf gets corrupted on cPanel server.
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
And restart the named service:
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.