Symptoms
Bind service (named) cannot be started. Starting script reports the following error:~# /etc/init.d/named start
Starting named:
Error in named configuration:
/etc/named.conf:6: change directory to '/var/named' failed: file not found
/etc/named.conf:6: parsing failed
[FAILED]
~#
Directory /var/named exists and has permissions 755. What may cause the problem and how to resolve it?
Cause
Incorrect jail is specified in named configuration.Resolution
Change the directory directive in named configuration file /etc/named.conf to /var.options {
allow-recursion {
localnets;
};
directory "/var";
pid-file "/var/run/named/named.pid";
};
and copy file rndc.conf from it current location to location inside the new jailed environment: /var/named/run-root
~# ls -l /var/named/run-root/etc
-rw-r--r-- 1 root root 480 Jan 23 2002 rndc.conf
~#