-
Notifications
You must be signed in to change notification settings - Fork 893
Description
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
Describe the bug
Within the documentation, the instructions for dnsmasq DHCP reservation specifies that only host needs to be specified, with domain left blank, presumably which defaults to your system domain. Intuition suggests this is expected - in all other areas requesting a domain, not setting a domain simply sets it to the system default.
That is not the case here. Unless domain is explicitly set when creating the reservation, Unbound is unable to query dnsmasq to lookup local hostnames (e.g. myhost.mydomain.com), violating the principle of least astonishment.
To Reproduce
Steps to reproduce the behavior:
- Create DHCP reservation with just a host specified
- Setup query forwarding from Unbound to dnsmasq for system domain.
- dig/nslookup the created DHCP reservation
- Get SERVFAIL
- Edit DHCP reservation and add in the system domain to the domain field
- dig/nslookup the edited DHCP reservation
- Get expected IP address
Expected behavior
- Create DHCP reservation with just a host specified
- Setup query forwarding from Unbound to dnsmasq for system domain.
- dig/nslookup the created DHCP reservation
- Get expected IP address
Describe alternatives you considered
ISC DHCP works fine. but as it is deprecated/being deprecated, I want to move to dnsmasq.
Relevant log files
all the configured stub or forward servers failed, at zone [my system domain]. no server to query nameserver addresses not usable have no nameserver names
Additional context
I own my own domain and use it for both local use and web use, with a split DNS setup through the usage of two reverse proxies (a local one intended for local services and a public one for public services)
Unbound is able to resolve reservations that do NOT have domain set, but appear in the "Leases" tab of dnsmasq. See #8611
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 25.1.6_2-amd64