SymptomsBIND service ("named") cannot be started. The starting script reports the following error:
~# /etc/init.d/named start
Error in named configuration:
/etc/named.conf:6: change directory to '/var/named' failed: file not found
/etc/named.conf:6: parsing failed
The directory /var/named exists and has the permission "755." What may be causing the problem and how can I resolve it?
CauseIncorrect jail settings are specified in the named configuration.
ResolutionChange directory to "/var" in the named configuration file /etc/named.conf:
directory "/var"; <- set this value
Find the place where the file rndc.conf is located, and copy it inside the new jailed environment /var/named/run-root:
~# locate rndc.conf
~# cp /etc/rndc.conf /var/named/run-root/etc
Verify ownership and permissions:
~# ls -l /var/named/run-root/etc
-rw-r--r-- 1 root root 480 Jan 23 2002 rndc.conf