Re: Problem with isc_named
On Mon, Jun 1, 2020 at 1:00 PM Stuart Henderson wrote: > > 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. > > > Then I probably didn't notice it until now. Either way, I've got it fixed with the great help of the list and I'm very grateful for that. I even figured out that you don't really need a file ""; statement. -- chs
Re: Problem with isc_named
On 2020-05-31, Christer Solskogen 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.
Re: Problem with isc_named
On Sun, May 31, 2020 at 8:45 PM Noth wrote: > > Hi, > >Why are you putting the zone files in /var/named/tmp? That's probably > the source of the problem. Use /var/named/{master,slave} for those... > I used to I them in slave, but that failed as well. -- chs
Re: Problem with isc_named
On 31/05/2020 20:00, Christer Solskogen 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. Hi, Why are you putting the zone files in /var/named/tmp? That's probably the source of the problem. Use /var/named/{master,slave} for those... Cheers, Noth
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 > 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.
Problem with isc_named
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.