rdomain incompatible with NSD ? (OpenBSD 6)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rdomain incompatible with NSD ? (OpenBSD 6)

Bob Jones
Hi,

Not sure if its a feature or a bug.  ;-)

OpenBSD my.example.com 6.0 GENERIC.MP#2319 amd64

Relevant bit of /var/nsd/etc/nsd.conf:
ip-address: 10.1.2.3


$ cat /etc/hostname.vmx1
rdomain 1
inet 10.1.2.3 255.255.255.224
!route -T1 add default 10.1.2.65

The above yields :
Sep  3 18:35:40 my nsd[35324]: nsd starting (NSD 4.1.10)
Sep  3 18:35:40 my nsd[35324]: can't bind udp socket: Can't assign
requested address
Sep  3 18:35:40 my nsd[35324]: server initialization failed, nsd could
not be started

Commenting out or removing the rdomain and route lines yields:
Sep  3 18:40:05 my nsd[40514]: nsd starting (NSD 4.1.10)
Sep  3 18:40:05 my nsd[36692]: nsd started (NSD 4.1.10), pid 17346

Reply | Threaded
Open this post in threaded view
|

Re: rdomain incompatible with NSD ? (OpenBSD 6)

Uwe Werler
You have to start nsd in rdomain 1.


Von meinem Samsung Galaxy Smartphone gesendet.<div>
</div><div>
</div><!-- originalMessage --><div>-------- Urspr√ɬľngliche Nachricht --------</div><div>Von: Bob Jones <[hidden email]> </div><div>Datum: 03.09.16  20:13  (GMT+01:00) </div><div>An: [hidden email] </div><div>Betreff: rdomain incompatible with NSD ? (OpenBSD 6) </div><div>
</div>

Reply | Threaded
Open this post in threaded view
|

Re: rdomain incompatible with NSD ? (OpenBSD 6)

Sebastian Benoit
In reply to this post by Bob Jones
Bob Jones([hidden email]) on 2016.09.03 19:11:41 +0100:

> Hi,
>
> Not sure if its a feature or a bug.  ;-)
>
> OpenBSD my.example.com 6.0 GENERIC.MP#2319 amd64
>
> Relevant bit of /var/nsd/etc/nsd.conf:
> ip-address: 10.1.2.3
>
>
> $ cat /etc/hostname.vmx1
> rdomain 1
> inet 10.1.2.3 255.255.255.224
> !route -T1 add default 10.1.2.65
>
> The above yields :
> Sep  3 18:35:40 my nsd[35324]: nsd starting (NSD 4.1.10)
> Sep  3 18:35:40 my nsd[35324]: can't bind udp socket: Can't assign
> requested address
> Sep  3 18:35:40 my nsd[35324]: server initialization failed, nsd could
> not be started
>
> Commenting out or removing the rdomain and route lines yields:
> Sep  3 18:40:05 my nsd[40514]: nsd starting (NSD 4.1.10)
> Sep  3 18:40:05 my nsd[36692]: nsd started (NSD 4.1.10), pid 17346

Relevant bit of a solution:

set

  nsd_rtable=1

in /etc/rc.conf.local