Unbound forgets hostname override after a few days. How to debug?

Started by tangofan, January 07, 2025, 03:20:17 AM

Previous topic - Next topic
Quote from: meyergru on January 09, 2025, 10:16:15 AM[...]
I severly doubt that this is neccessary (or a problem): AFAIR, when a dynamic lease is issue, the name is being registered immediately.

Static leases are kept in /var/unbound/host_entries.conf and dynamic leases are in /var/unbound/dhcpleases.conf. Both files are just included in unbound.conf with no specific notion. So either both or none should lead to an unbound restart - or better, reload, as unbound apparently has a seamless reload function.

Hmm, aren't both of these files Unbound's version of what it converted from dhcpd data?
It's my understanding that ISC is trailing ISC's leases file (new leases added at the end documented).
I haven't looked where/how static mappings are maintained but it's possible it doesn't facilitate incremental updates.
All these ISC to Unbound settings are on the Unbound side... It implies Unbound is doing the work.

FWIW, it seems Netgate is working on a Kea to Unbound integration via APIs.

There is an OpnSense-specific way of having dynamic ISC leases converted to /var/unbound/dhcpleases.conf, namely a watcher that writes it whenever the ISC dhcpd leases file changes. The logic for this is complex, which might explain why converting a dynamic lease to a static one is not correctly recognized.

There is neither a watch for static leases nor a mechanism in the GUI for static lease editing - in line with the documentation, but unexpected, regardless. If you know, then fine, you can circumvent the problem.

On the Kea side of things, there seems to be no integration for either static reservations or dynamic leases.

With Kea on the rise, I expect no more work going into ISC. Still waiting for feature parity, though.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, ZTE F6005

1100 down / 800 up, Bufferbloat A+