Nincs kész!
mkdir -p /chroot/bind/etc cp -p /etc/bind/named.conf /chroot/bind/etc/
mkdir -p /chroot/bind/namedb/master cp -a /var/cache/bind/master/* /chroot/bind/namedb/maseter/ mkdir -p /chroot/bind/namedb/slave cp -a /var/cache/bind/slave/* /chroot/bind/namedb/slave/
mkdir /chroot/bind/dev mknod /chroot/bind/dev/null c 1 3 mknod /chroot/bind/dev/random c 1 8 chmod 666 /chroot/bind/dev/null /chroot/bind/dev/random chown -R bind:bind /chroot/bind/namedb/* chown -R bind:bind /chroot/bind/etc
echo "$AddUnixListenSocket /chroot/bind/dev/log" > /etc/rsyslog.d/bind.conf
invoke-rc.d rsyslog restart
Beállítjuk, hogy a bind9 chroot módban fusson:
invoke-rc.d bind9 stop
mcedit /etc/default/bind9
OPTIONS="-u bind -t /chroot/bind"
invoke-rc.d bind9 start