Running dns/bind910 within a chroot after r382109
dns/bind910 gained native chroot support in r382109. Those of us who used to store the BIND files in /var/named/etc/namedb and ran BIND with /var/named as the chroot environment, must do five things:
- Rename the
/var/nameddirectory to something else, like/var/Named. This is to avoid upsettingmake -C /usr/src delete-oldand still retain the meaning of the directory’s name. - Rename the
/var/Named/etc/namedbdirectory to/var/Named/usr/local/etc/namedb. - Edit
/var/Named/usr/local/etc/namedb/named.confto reflect that the BIND files now resides in/usr/local/etc/namedb, as seen from within the chroot environment. - Change the appropriate line in
/etc/rc.confto readnamed_chrootdir="/var/Named". - Restart BIND using
/usr/local/etc/rc.d/named restart, or start BIND using/usr/local/etc/rc.d/named startif the former fails.