bind9 failed - bindnamed: chroot(): no such file or directory
My platform is Debian Etch, and installed bind9-3.4-2. When I manually start /etc/init.d/bind9, the name server failed. Any help?
My steps: edited /etc/default/bind9, adding OPTIONS="-u bind -t /var/lib/named"
mkdir -p /var/lib/named/etc
mkdir -p /var/lib/named/var/cache/bind
mkdir -p /var/lib/named/var/run/bind/run
mv /etc/bind /var/lib/named/etc
ln -s /var/lib/named/etc/bind /etc/bind
mknod /var/lib/named/dev/null c 1 3
mknod /var/lib/named/dev/random c 1 8
chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random
chown -R bind:bind: /var/lib/named/var/*
chown -R bind:bind /var/lib/named/etc/bind
edited /etc/default/syslogd: SYSLOGD="-a /var/lib/named/dev/log"
mknod /var/lib/named/dev/zero c 1 5
chmod 666 /var/lib/named/dev/zero
When I do /etc/init.d/bind9 start, I get:Starting domain name service...: bindnamed: chroot(): No such file or directory Failed!
Thanks for any enlightenment.
What happens if you run:
named -u bind -t /var/lib/named
instead of running the init script?
The above has the options you gave and I don't see anything wrong with your steps. If you still get the error about chroot then it likely means the init script is OK. If you do NOT get the error then it suggests the init script isn't reading the options you put in the default file for some reason and may be trying to set something other than /var/lib/named as the chroot directory.
|All times are GMT -5. The time now is 03:17 AM.|