BIND9 daemon is appending installed path while searching named.conf

Lalatendu Das lalatdas at gmail.com
Sun Feb 10 20:42:57 UTC 2008


Hi all,
I am facing a typical problem. From the configure command's help I
found that one can specify the desired installed path where all the
binaries, libraries and other components of bind9 will be installed.
It can be done
configure --prefix=<desired_path>.

I am configuring as below:
./configure --prefix=/home/myfile --build=i486-ncr-sysv4.3  --with-
libtool .......etc

It also installing the component in proper path, but when I try to run
the named server

Server failed to start stating error as follows

Feb 10 20:55:34 named[7146]: starting BIND 9.4.1
Feb 10 20:55:34 named[7146]: loading configuration from '/home/myfile/
etc/named.conf'
Feb 10 20:55:34 named[7146]: none:0: open: /home/myfile/etc/named.conf
: file not found
Feb 10 20:55:34 named[7146]: loading configuration: file not found
Feb 10 20:55:34 named[7146]: exiting (due to fatal error)

Here I have kept configuration file under /etc assuming that nnamed
will read from it. But it is trying to read from the path which it
generateds by appending the installed path at the configuartion time
in the front of /etc/named.conf.

Even I specifically says to read from the path by -c option. It agin
fails for craeating named.pid
as it is tryinmg to create under the path <prefixed_path>/etc/
named.pid. and the path doesn't exist.
So error in that case which causing named failed to start is pasted as
below.

Feb 10 20:24:05 in.named[7043]: couldn't open pid file '/home/myfile/
var/run/named.pid': No such file or directory
Feb 10 20:24:05 in.named[7043]: exiting (due to early fatal error)

Kindly suggest some remedy for this. Am I going something wronmg
somewhere.

Why named daemon search and create all configurational file appended
with <installed path> in the front?
In my case it is /home/myfile/



More information about the bind-users mailing list