DHCP question

Leen Besselink leen at consolejunkie.net
Wed Jul 6 14:47:17 UTC 2016


On Wed, Jul 06, 2016 at 04:38:29PM +0200, Benno Overeinder via Unbound-users wrote:
> On 06/07/16 16:21, Nico CARTRON via Unbound-users wrote:
> > On 06 Jul 2016, at 15:32, Bryan C. Everly <bryan at bceassociates.com> wrote:
> > 
> >>> You mean you want the DNS zone bar.com to be updated with the hostname of
> >>> your laptop (foo in your case)?
> >>> Unbound being a recursive/cache DNS server, that won’t be possible.
> >>> You’ll need to set up an Authoritative DNS server (like NSD, Bind or Knot,
> >>> all of which are available for OpenBSD) to have this.
> >>>
> >>> Cheers,
> >>>
> >>> --
> >>> Nico
> >>
> >> Thanks for the quick response.  I will look into an authoritative server.
> > 
> > As pointed out by someone else, better try with BIND first. Didn't try with NSD and Knot especially on such a scenario. 
> 
> For the adventurous, you can probably make/hack something yourself with
> unbound-control local_data /RR data/.   With local-zones, Unbound is
> "authoritative" for the RR data in a zone.  (Note there are different
> modes for local-zones: transparent, redirect, deny, etc.  See man pages
> of unbound and unbound-control.)
> 

In these cases you'd probably want some instructions how to get dhcpd to call a script:
http://jpmens.net/2011/07/06/execute-a-script-when-isc-dhcp-hands-out-a-new-lease/

An other authoritive nameserver that wasn't mentioned is: PowerDNS.

> Cheers,
> 
> -- Benno
> 
> 
> -- 
> Benno J. Overeinder
> NLnet Labs
> http://www.nlnetlabs.nl/



More information about the Unbound-users mailing list