Re: Problems chrooting BIND 9.2.2 in a Solaris 8 box

Chris Ess <[email protected]> Fri, 12 Mar 2004 11:49:35 -0500 (EST)
Newsgroups gmane.comp.security.sun,gmane.comp.security.basics
Message-ID <[email protected]>
Sorry about the cross-posting, but it's in the original message.

On Thu, 11 Mar 2004, GARCIA CABALLERO Jordi wrote:

> Hi,
>
> Chrooting BIND 9.2.2 in a Solaris 8 02/2002 box, I get this weird error when
> running named in the jail:
>
> # /usr/sbin/chroot /export/home/dns /usr/local/sbin/named -u named
>
> What I see from the console
>
> Mar 11 18:26:15 oasv020 named[11788]: /etc/named.conf:16: change directory
> to '/dns/etc' failed: file not found
> Mar 11 18:26:15 oasv020 named[11788]: /etc/named.conf:16: parsing failed
> Mar 11 18:26:15 oasv020 named[11788]: loading configuration: file not found
> Mar 11 18:26:15 oasv020 named[11788]: exiting (due to fatal error)

What's on line 16 of the 'named.conf' file?

If I had to guess, which is all I can do at the moment, I'd say that line
16 of your 'named.conf' is the directory entry in the options block and it
looks like:

     directory "/dns/etc";

If this is the case, fix the directory to what it should be in the
chroot'd environment and try again.

Sincerely,


Chris Ess
System Administrator / CDTT (Certified Duct Tape Technician)