[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: named: can't change directory
Hi.
On Thu, 3 Feb 2000, Kim Culhan wrote:
>
> Installed named 8.2.2-P6 from ports and it returns this message at
> boot:
>
> named[22240]: can't change directory to /var/named: no such file or directory
>
> Apparently I don't have named setup to run correctly in the chroot'd
> environment at /var/named..
>
> Any help here is greatly appreciated.
>
> -kim
>
> --
> openbsd@kim.net
Hi.
My guess is that you have
options {
directory "/var/named";
...
};
in you named.conf file.
As 'named' by default chroot()-s to /var/named, the correct configuration
here is simply
options {
directory "/";
...
};
as "/var/named" is now just "/" when we're chroot()-ed.
Please take a look at /var/named/named.conf.sample as it contains this and
other hints of a (as we consider it) good named configuration.
Regards,
Håkan.
PS. For some more info on chroot; read the manual pages, section 2 and 8.
--
Håkan Olsson <ho@crt.se> (+46) 708 437 337 Carlstedt Research
Unix, Networking, Security (+46) 31 701 4264 & Technology AB