Voytek Eymont wrote:
I've copied /etc/named.conf and zone files, edited for chroot path,
"edited for chroot path" is the error.
Remove and reinstall
bind-utils
bind-libs
bind
bind-chroot
to get back to a clean situation.
Now edit /var/named/chroot/etc/named.conf. The
filenames in that file are as if the daemon is
running with the root changed to /var/named/chroot.
So:
options {
directory "/var/named"; // Actually /var/named/chroot/var/named/
dump-file "/var/named/data/cache_dump.db"; // And so on
statistics-file "/var/named/data/named_stats.txt"; /And so on
...
include "/etc/rndc.key"; // Actually /var/named/chroot/etc/rndc.key
zone "example" {
type master;
file "data/example"; // Actually /var/named/chroot/var/named/data/example
allow-update {
localhost;
};
};
include "/etc/named.rfc1912.zones"; // Actually
/var/named/chroot/etc/named.rfc1912.zones
It's all pretty easy. You just need to keep everything in /var/named/chroot
and then strip that prefix from the file names when you refer to them.
--
Glen Turner <http://www.gdt.id.au/~gdt/>
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html