[Unbound/Dnmasq] Register DHCP Static Mappings

Started by flushell, June 07, 2025, 11:48:55 AM

Previous topic - Next topic
June 07, 2025, 11:48:55 AM Last Edit: June 07, 2025, 05:50:01 PM by flushell
Is the setting "Register DHCP Static Mappings" in Unbound not longer needed if internal queries are forwarded to Dnsmasq and you don't use ISC DHCP? It is my understanding that this setting refers to static mappings in ISC DHCP (seems logical), but I did not find a definite answer and I can't test it because I haven't set this up yet. If so, maybe add this to the help-description of this setting in Unbound.

EDIT: In the docs it's stated as "Register ISC DHCP Static Mappings": https://docs.opnsense.org/manual/unbound.html
That answers my question, but it's not the same text as in the Unbound Settings.

EDIT2: See this commit: https://github.com/opnsense/core/commit/139a3add4bb4360e2dda8f3251283e0173b0f980
Will be deleted as it's for Kea too.

IIRC, the static mappings are picked up from the config.xml directly so it applies to all DHCP servers managed through the GUI.
Unbound restart is required. Hostname required too.

OTOH, if you forward to Dnsmasq for local resolution, reading these mappings does not seem very useful...

Yes, thank you, all clear now. The ISC part will be removed from the docs, see this PR, already merged: https://github.com/opnsense/docs/pull/744