On Thu, Jun 22, 2017 at 11:47:03AM +0200, Andreas Kusalananda Khri wrote:
> 
> I have unbound(8) and dhcpd(8) running on a router (OpenBSD 6.1-stable).
> dhcpd currently hands out fixed addresses to my clients, but I'd like
> these to be allocated dynamically from the common pool, while at the
> same time being resolvable.
> 
> Is there an existing solution for feeding the IP-addresses of the leases
> that dhcpd hands out into the unbound configuration and reload it, or
> would I have to write a script that parses the lease declarations in
> /var/db/dhcpd.leases?

OpenBSD dhcpd cannot do this by itself but ISC dhcpd from ports can
execute whatever on commiting a lease, see
  
http://jpmens.net/2011/07/06/execute-a-script-when-isc-dhcp-hands-out-a-new-lease/

Though you could parse logs of OpenBSD dhcpd log, maybe good opportunity to
play with various logs "parsers".

j.

Reply via email to