named-chroot

zdravim,
skusam named dat do chroot - fc6
postup:
mam funkcny bind
yum install bind-chroot
zkpoirujem configuracne subory do /var/named/chroot/var/named

/etc/init.d/named start
Locating /var/named/chroot//etc/named.conf failed.
I can’t find any configuration file. You can create it by system-config-bind
or install caching-nameserver.
[FAILED]

chyba mu /etc/named.conf
tak teda vytvorim
cd /var/named/chroot/etc
ln -s …/var/named/named.conf named.conf

/etc/init.d/named start
Starting named: [ OK ]

teda bind ide, zda sa ze ok.
problem je ked dam /etc/init.d/named stop

/etc/init.d/named stop
Stopping named: …no response, killing with -TERM
[ OK ]

hmmm, nenapada vas preco stopnut nejde “normalne” ?

asi som na to prisiel,

na stopnutie named sa pouzva rndc (co je nieco na ovladanie bindu z inych pc) ale mne na porte 953 po nastartovani v chroote bind nepocuva.

a to preto lebo ked sa startuje nie je /var/named/chroot/etc/rndc.key
tak ho tam staci prekopirovat
cp /etc/rndc.key /var/named/chroot/etc/rndc.key

a teraz po nastartovani pocuva named na port 953 a stop ide ok

dokonce mám pocit, že se tahle chyba objevila v bugzille, ale jestli se dobře pamatuju, tak se to týkalo upgradu z CentOS 4.3 na 4.4, tedy nikoli Fedory