Unbound not resolving queries for static mappings in DHCP range [SOLVED]
-
@jimp I have tested both, neither works. Both variants work on the other PfSense box I have (same hardware; seemingly identical setup for DHCP and DNS).
-
What do you have in
/var/unbound/dhcpleases_entries.conf
? Is thedhcpleases
daemon running? -
/var/unbound/dhcpleases_entries.conf appears to be empty:
[2.4.4-RELEASE][admin@pfSense.domain]/root: cat /var/unbound/dhcpleases_entries.conf [2.4.4-RELEASE][admin@pfSense.domain]/root:
dhcpleases is not running:
[2.4.4-RELEASE][admin@pfSense.domain]/root: ps aux | grep dhcpleases root 53138 0.0 0.1 6564 2464 0 S+ 16:13 0:00.01 grep dhcpleases
-
Do you have Register DHCP leases in the DNS Resolver checked under Services > DNS Resolver? It's a separate option from the static mappings checkbox.
-
Register DHCP leases in the DNS Resolver is disabled (on both boxes).
-
You need to have that checked. Otherwise it can't determine the hostname/IP address pairing for dynamic allocations.
-
Ok, thank you very much for your help.
That setting used to be turned on on my other box and the contents of /var/unbound/dhcpleases_entries.conf apparently don't get "flushed" if the setting is disabled. So that box was still able to resolve the hostnames even though the setting had already been turned off.
-
@jimp The "Register DHCP leases in the DNS Resolver" checkbox no longer appears on 24.03 and static DHCP addresses are not being resolved
-
-
@Gertjan you are a devil that only exists with ISC DHCP and not Kea DHCP.
I have reverted back to ISC until the enhancements to Kea are done