On Thu, Feb 26, 2026 at 10:39 AM Martin <[email protected]> wrote:
> Currently we run Unbound without NSD for our local net where > Unbound has a local file with IPs and PTRs for the LAN. We > also use dhcpd to assign fixed IPs based on the MAC. > > So far all is done manually. Is there some way to automatically > add hosts and hostnames to Unbound when a lease is granted from > dhcpd or some other way? > Not per base only, I think. The standard answer seems to be "install dnsmasq". Your best option might be looking into incron and/or monit. Then you can monitor for (immediate/realtime) changes to /var/db/dhcpd.leases and act accordingly against unbound. It will involve scripting and parsing, and you'll be at the mercy of non-base tools, but it should be doable. Let us know if you cook something up. I'm going to give it a shot myself – one day. Kind regards

