On 2020-05-31, Christer Solskogen <christer.solsko...@gmail.com> wrote:
> Hi!
>
> With current (OpenBSD 6.7-current (GENERIC.MP) #232: Sat May 30 18:17:19
> MDT 2020) and up-to-date packages, I'm having a hard time running isc_named
> as a slave dns.
>
> I get this in the log:
> dumping master file: tmp/tmp-lxMn2v1tJx: open: file not found
>
> named.conf is like this:
> options {
>         directory "/tmp";       // working directory, inside the /var/named
> chroot

This is used as the base for relative paths in the rest of the config
file..

>                                 // - must be writable by _bind
>         version "";             // remove this to allow version queries
>
>         listen-on    { any; };
>         listen-on-v6 { any; };
>
>         empty-zones-enable yes;
>
>         allow-recursion { clients; };
> };
>
> zone "0.168.192.in-addr.arpa" {
>         type slave;
>         masterfile-format text;
>         file "tmp/0.168.192.in-addr.arpa";

i.e. this makes it look in /var/named/tmp/tmp. (/var/named from the chroot;
/tmp from "directory"; ".../tmp" from "file").

> I can't seem to find any error in my config. Could there be something wrong
> with the package?

Yes the sample config was slightly broken. Since there were no reports
between December (when this was introduced) until after 6.7 was released
I guess everybody running this in -current uses their own config rather
than the sample config so they didn't notice it.

I fixed this in -current last week by removing most of the sample config,
and I've just committed a change to -stable to add / for the various paths
which should show up in -stable packages in a day or so.


Reply via email to