Chroot DNS Install bind9 and its docs and utilities:
It will probably autostart after install, so stop it before proceeding:
Create the chroot. This requires a minimal file tree:
And some devices:
Move your default configuration files:
Tell rsyslog to listen for log events in the chroot:
and add the line:
$AddUnixListenSocket /var/named/dev/log Tell bind9 init to use the chroot:
and add:
OPTIONS="-u bind -t /var/named" Restart syslogd and make sure it creates /dev/log in the chroot.
Restarting system log daemon: syslogd.
srw-rw-rw- 1 root root 0 2008-10-09 14:48 /var/named/dev/log Start bind9 and make sure it works
Starting domain name service...: bind.
5397 ? Ssl 0:00 /usr/sbin/named -u bind -t /var/named
localhost A 127.0.0.1
For any feedback or corrections, please write in to: Simon Quantrill