Bind cannot open /etc/namedb/named.conf

Joseph Begumisa begj at cfi.co.ug
Sat Jan 5 14:28:50 UTC 2002


> The version is 8.2.3-REL on FreeBSD 4.3.  The two lines in rc.conf look like
> this:
>
> named_enable="YES"
> named_flags="-u bind -g bind -t /etc/namedb"
>
> I figured out that the -t (chroot) option is causing the problem, but I'm
> not sure why.  I guess I really don't need to chroot for a machine isolated
> on my LAN that doesn't receive external queries anyway, so I removed the -t
> option and it ran okay.  I'd still like to know why it caused a problem,
> though.

your named_flags should look like this:

named_flags="-u bind -g bind -t /etc/namedb -c /conf/named.conf"

the -c option tells BIND where to find its configuration file within the
jail. e.g in this case under the directory /conf which is also
located under /etc/namedb. alternatively you do not need to use the -c
option.  just do this:

named_flags="-u bind -g bind -t /etc/namedb /conf/named.conf"


Joseph.




More information about the bind-users mailing list