Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Feb 2005 00:17:30 +0100
From:      Emanuel Strobl <emanuel.strobl@gmx.net>
To:        freebsd-questions@freebsd.org
Cc:        kilim <kilim@phenix.rootshell.be>
Subject:   Re: DNS' bind 9 chrooted by default ?
Message-ID:  <200502120017.38796@harrymail>
In-Reply-To: <20050211222931.GA14659@phenix.rootshell.be>
References:  <20050211222931.GA14659@phenix.rootshell.be>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Am Freitag, 11. Februar 2005 23:29 schrieb kilim:
> Hello,
>
> regarding Bind 9, here:
>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-bind9.htm
>l
>
> its stated that the configuration file resides in
> /var/named/etc/namedb/ and that bind will be chrooted automatically.
>
> Yet here:
>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dns.html
>
> steps are shown for manual chrooting of bind (not version 9)
>
> So I just want to confirm it with you guys, is bind 9.3 really
> chrooted by default on 5.3 ?

Yes it is, at least on my oldest 5.3-STABLE box, I don't have a 5.3-RELEASE 
handy to verify.
Your configuration directory will still be /etc/namedb, 
not /var/named/etc/namedb since, by default, the chroot environment gets auto 
updated.
See these options for rc.conf for further details:
named_enable="NO"               # Run named, the DNS server (or NO).
named_program="/usr/sbin/named" # path to named, if you want a different one.
named_flags="-u bind"           # Flags for named
named_pidfile="/var/run/named/pid" # Must set this in named.conf as well
named_chrootdir="/var/named"    # Chroot directory (or "" not to auto-chroot 
it)
named_chroot_autoupdate="YES"   # Automatically install/update chrooted
                                # components of named. See /etc/rc.d/named.
named_symlink_enable="YES"      # Symlink the chrooted pid file


Ragards,

-Harry


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCDT0SBylq0S4AzzwRAgxOAJwM1maK/ag6/A9B4BxJ9zG/0ky/RgCffzWo
p6w4CQ/61ldkcFTpnUQEJ1I=
=+PZq
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502120017.38796>