problems

Kevin Darcy kcd at daimlerchrysler.com
Wed Jun 28 20:16:36 UTC 2000


steffen at ramyam.net wrote:

> hello bind users !
>
> i have 2 probs wiht bind.
> 1) chroot() - in my log file i have the msg
> ........... named[5543] : chroot to /var/named
> in my /var/named/named.conf are :
> directory "/"
>
> now i want send named a HUP signal
>
> ............named[5543] : can't open 'named.conf'
>
> then : named.restart
>
> and all works fine.
>
> what's the problem ?

When you HUP named, it's looking for its config file at "/etc/named.conf" by default.
Because it's chroot'ed to /var/named, however, it's actually looking for the config
file at /var/named/etc/named.conf. Apparently you don't have that file. You could link
/etc/named.conf to /var/named/etc/named.conf (just don't try to symlink in the
opposite direction!) so that you wouldn't have to maintain 2 copies of the file.

> 2) recurse - in the log file named tells :
> ............named[5543] : master zone "1.168.192.in-addr-arpa" (IN) loaded ..
>
> now i test it with nslookup - set recurse
> >set recurse
> >192.168.1.1
> Server localhost
> ...
> *** localhost can't find 192.168.1.1: Non-existent host/domain
> >192.168.2.2
> ... no problems
>
> there are no difference betwen the two "in-addr.arpa" files except the PTR session.
>
> i don't now what's wrong (?)

I don't know what you mean by "PTR session". Are the 2 zonefiles large? Could you just
post them? Or could you just post a "diff" of the 2 files?

(By the way "set recurse" isn't usually necessary, since recursion is the default for
nslookup).

> 3) zone-transfer
> my sec nameserve writes to me ... named-xfer[12312] : can't make tmpfile ...
> in the named.conf (master) i  allow-tranfer to the IP to my sec ..

Are you running under a non-root ID? If so, then verify that that ID has permission to
create temporary files in the chroot jail (this requires write access to the working
directory).


- Kevin




More information about the bind-users mailing list