Skip to content

Unbound cannot resolve dnsmasq DHCP reservations unless Domain in the reservation is set, contrary to documentation #8612

@Unspec7

Description

@Unspec7

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

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:

  1. Create DHCP reservation with just a host specified
  2. Setup query forwarding from Unbound to dnsmasq for system domain.
  3. dig/nslookup the created DHCP reservation
  4. Get SERVFAIL
  5. Edit DHCP reservation and add in the system domain to the domain field
  6. dig/nslookup the edited DHCP reservation
  7. Get expected IP address

Expected behavior

  1. Create DHCP reservation with just a host specified
  2. Setup query forwarding from Unbound to dnsmasq for system domain.
  3. dig/nslookup the created DHCP reservation
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportCommunity support or awaiting triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions