chroot bind9 Issue
Hai,
I am new for this list. I alreay posted my issue in
debian-user. But I didn't get any help.So please help
me.
I would like to configure bind9 with chroot on my
debian woody. I have referred lot of links and based
on that I have did the configuration. It works fine
except some issues, when I stop bind9, I am getting
the following error
Stopping domain name service: namedrndc: neither
/etc/bind/rndc.conf nor /etc/bind/rndc.key was found
I have done the following configuration change in my
debian
# addgroup named
# adduser --system --home /home/named --no-create-home
--ingroup named \
--disabled-password --disabled-login named
# mkdir /var/named
# cd /var/named
# mkdir -p dev etc lib usr/sbin var/named var/run
var/cache/bind
# mv /etc/bind etc/
# mknod dev/null c 1 3
# mknod dev/random c 1 8
# chmod 666 dev/null dev/random
# chown -R named.named named
Edited /etc/init.d/sysklogd to include SYSLOGD="-a
/var/named/dev/log"
Edited /etc/init.d/bind9 to include OPTS="-u named -t
/var/named"
# /etc/init.d/sysklogd restart
# /etc/init.d/bind9 start
bind is started well without any error. I have also
verified from the syslog file.
But while stopping, the 'rndc' still refers the
non-chroot path (/etc/bind/named.conf).
If I do
# cp /var/named/etc/bind/rndc.key /etc/bind/rndc.key
Then the bind stops without any error.
Can you please help me to solve this problem?
Sarav
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Reply to: