OPNsense Forum

English Forums => 25.7 Series => Topic started by: gadgetguy on August 08, 2025, 09:28:43 PM

Title: [SOLVED] static dhcp lease domain issues in dnsmasq
Post by: gadgetguy on August 08, 2025, 09:28:43 PM
Part of this was mentioned in the 25.1 Series but wasn't answered. @IsaacFL https://forum.opnsense.org/index.php?topic=47963.0


In Dnsmasq, the static mappings are set in hosts tab and are present in the /var/etc/dnsmasq-hosts, but they dont show the FQDN in /var/db/dnsmasq.leases and won't do an internal lookup successfully.

In Unbound, the "Register DHCP Static Mappings" option is checked

I am finding the forum comments and documentation a bit confusing on this. 


Most everything else is functional -- traffic flow is good, dhcp assignments work, dhcp options work properly (except domain name).
Title: Re: static dhcp lease domain issues in dnsmasq
Post by: gadgetguy on August 11, 2025, 04:32:10 PM
Incomplete setup.  Needed Unbound DNS query forwarding for Internal addresses.

https://docs.opnsense.org/manual/dnsmasq.html#dhcpv4-with-dns-registration

The FQDN do not show in the /var/db/dnsmasq.leases, but they can be found with a nslookup.