Named cannot start with error "change directory to '/var/named' failed: file not found"

Article ID: 5628 
Last Review: Oct,17 2008
Author: Bezborodova Anastasiya
Last updated by: Bezborodova Anastasiya APPLIES TO:
  • Plesk 8.x for Linux/Unix

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
~#



Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields