cpanel rndc: ‘reload’ failed: unexpected end of input

It usually means you have some syntax errors in your named.conf. And there are many chances after reboot bind will not start.

Ok lets fix it:

service named status
WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)
version: 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1

you can try: /scripts/rebuildnamedconf

This script is deprecated. Please use /usr/local/cpanel/scripts/rebuilddnsconfig instead.
Executing /usr/local/cpanel/scripts/rebuilddnsconfig

Named could not be restarted, any obvious config errors should show up below this line.
WARNING: /etc/named.conf appears to contain errors which could not be corrected automatically!
/etc/named.conf:14394: unknown option ‘.tk.db’
/etc/named.conf:17217: unexpected end of input
Please correct these errors manually and rerun /usr/local/cpanel/scripts/fixrndc

you need manually check named.conf line 14394 and remove some incorrect entries from you configuration files.

then try to start named:

service named start

Leave a Reply

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