Admin-Ahead Community

Linux => General Linux => Topic started by: lathu_official on January 21, 2014, 09:39:26 pm

Title: BIND configuration file blank in zpanel
Post by: lathu_official on January 21, 2014, 09:39:26 pm
When we add additional domains in zpanel, sometimes the named.conf may go blank. Actually it is a bug in zpanel.
 
Go to zpanel > Admin > moduleAdmin >DNS config >Tools > Force Records Update on Next Daemon Run
 
Then run the daemon by going to
 
Admin > Zpanelconfig> Run Daemon now option in the top bottom of it.
 
Also location of named.conf in zpanel is /etc/zpanel/configs/bind/etc/named.conf and /etc/zpanel/panel/local/zpanel/etc/build/config_packs/centos_6_2/bind/etc/named.conf
 
The location of zone files is /etc/zpanel/configs/bind/zones
 
All zone files and dns files should have user and group as apache.
 
To avoid the named.conf going blank while adding new domains, do the following:
 
1) Log into zpanel
2) Go into the Module Admin
3) Click the DNS Config link
4) Edit this config option in the general tab:
 
Named CheckZone
 
FROM

named-checkzone
named-checkconf
named-compilezone
 
TO

/usr/sbin/named-checkzone
/usr/sbin/named-checkconf
/usr/sbin/named-compilezone

-------------.
Thanks.