[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

chroot bind9 issue (rndc stop error)



Hai,
  I am new for this list. I would like to configure
bind9 with chroot on my debian woody. I have referred
lot of links (some are in this list also) 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 

# 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.

How to make 'rndc' to refer the new chroot path?

Regards,

Sarav


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 



Reply to: