Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHCPv4 "Domain search list" domain will override "Domain name" when registering static DHCP hosts in Unbound DNS. #5027

Closed
2 tasks done
Alives opened this issue Jun 2, 2021 · 2 comments
Assignees
Labels
bug Production bug
Milestone

Comments

@Alives
Copy link

Alives commented Jun 2, 2021

Important notices

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

Describe the bug

Example config:

  • DHCPv4 with:

    • Domain name: abc.com
    • Domain search list: google.com
  • Unbound DNS with:

    • Register DHCP static mappings checked

All static records will be listed under the "Domain search list" domain instead of "Domain name" domain.

Verified by cat /var/unbound/host_entries.conf and see all my static entries with google.com domain set instead of abc.com domain set. Also verified this happens with dnsmasq set, so the issue is in the DHCP implementation side.

OPNsense 21.1.6 a2ee9b0ec (amd64, OpenSSL)

@AdSchellevis
Copy link
Member

looks like a regression from #4642, fixed in 7ef730a

can you try the following on a console?

opnsense-patch 7ef730ac

@AdSchellevis AdSchellevis added the support Community support label Jun 2, 2021
@Alives
Copy link
Author

Alives commented Jun 2, 2021

opnsense-patch 7ef730ac fixed the issue, tested that the correct file was written after adding back the domain search list in dhcp and restarting both dhcpv4 and unbound.

@fichtner fichtner self-assigned this Jun 3, 2021
@fichtner fichtner added bug Production bug and removed support Community support labels Jun 3, 2021
@fichtner fichtner added this to the 21.7 milestone Jun 3, 2021
@fichtner fichtner closed this as completed Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Production bug
Development

No branches or pull requests

3 participants