Whenever I'm trying to start bind following error is showing (in webmin):
Failed to start BIND : Starting named: Error in named configuration:
/etc/named.conf:3: change directory to '/var/named/chroot/var/named' failed:
file not found /etc/named.conf:3: parsing failed [FAILED]
and my bind configuration is:
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/var/named/chroot/var/named";
auth-nxdomain no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "/var/named/chroot/var/named/named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "/var/named/chroot/var/named/named.local";
};
zone "xxx.xx.xx.in-addr.arpa" {
type master;
file "/var/named/chroot/var/named/pri.xxx.xx.xx.in-addr.arpa";
};
zone "xyz.com" {
type master;
file "/var/named/chroot/var/named/pri.xyz.com";
};
//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
I've checked all the files/folders are with permission of 775.