Skip to content

Unbound host overrides breaks when adding a wildcard entry #8051

@kriansa

Description

@kriansa

Important notices

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

Describe the bug

Adding a DNS entry named * (wildcard) on a domain with an existing host override will be allowed by UI but will break Unbound initialization, thus making it immediately offline after applying the change.

According to the manual, wildcards should be accepted as host names for host overrides.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Services', then 'Unbound DNS', then 'Overrides'
  2. Click on '+' button and add a new override
  3. Set host to "abc", domain to "opnsense.com", type A, IP address 127.0.0.1
  4. Save, then click Apply
  5. Unbound will be still running, validate running a drill @routerip abc.opnsense.com to see that it returns an entry to 127.0.0.1
  6. Click on '+' button and add a new override
  7. Set Host to '*', domain to "opnsense.com", type A, IP address '127.0.0.1'
  8. Save, then click Apply
  9. See that Unbound will stop and won't start again unless you either remove that entry or all entries that are not wildcards for that domain and apply again

Expected behavior

Unbound should stay up, and a subsequent drill xyz.opnsense.com should return an entry to '127.0.0.1'.

Environment

I don't think it's relevant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedContributor missing / timeout

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions