Sunday, May 31, 2020

Re: Problem with isc_named

After upgrade to 6.7 I had to change all of isc_named's file statements to have a / before their path. Fwiw, I don't see this in the Changelog, nor does sysmerge handle this, so I'm guessing this is some sort of new bug.

Before 6.7, this always worked:
file "master/loopw.com"

after, I have to do this:
file "/master/loopw.com"

where it's actually /var/named/master/loopw.com on the filesystem.



so outside of that problem, my two cents: I wouldn't put my zone files in tmp, I put those in file /var/named/secondary





> On May 31, 2020, at 11:00 AM, Christer Solskogen <christer.solskogen@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
> // - 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";
> masters { 192.168.0.4; };
> };
>
> zone "antarctica.no" {
> type slave;
> masterfile-format text;
> file "tmp/antarctica.no";
> masters { 192.168.0.4; };
> };
>
> zone "carebears.no" {
> type slave;
> masterfile-format text;
> file "tmp/carebears.no";
> masters { 192.168.0.4; };
> };
>
>
> /var/named/tmp is owned by _bind:_bind with drwxrwxr-x
>
> I can't seem to find any error in my config. Could there be something wrong
> with the package?
> isc-bind-9.16.3p0v0 is the one I have installed.

No comments:

Post a Comment