-
Notifications
You must be signed in to change notification settings - Fork 759
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
DNS Resolver - Unbound - Not able to resolve DHCP leases until it is saved #435
Comments
|
@StopTrain reported that not setting up IPv6 unbreaks unbound |
|
@StopTrain hey Matt, close this or investigate further? |
|
Investigating a different issue with this feature I can now tell what's the reason for this one, I'd say: The DHCP leases are mapped as static host overrides within unbound. The "magic" is done within |
|
There is quite a bit of complication going on. There is a daemon called dhcpleases, which knows the PID of the DNS daemon so the config can be reloaded using SIGHUP, but I don't know how the host file is regenerated other than probably doing it in the daemon itself, not sure if some code is missing since the GUI code was forked 9 months after the dhcpleases code disappeared... https://github.com/opnsense/core/blob/master/src/etc/inc/system.inc#L465 I've ran a test with Matt using the newer daemon's code but it was unsuccessful. |
|
Matt, @AdSchellevis has revorked this for the development version of 16.1.5. I've tested this, looked pretty good now. Can you retest when it's out? |
|
I most certainly can. |
|
This is in since a while, I'd like to vote for close and worst case opening a new bug. The behaviour of the resolver seems to be better now and original behaviour may not apply. :) |
|
timeout |
So, this odd issue popped up where I was not able to resolve DHCP leases within the DNS Resolver.
What I found was an article speaking about how Unbound is not able to resolve new leases as it doesn't know about them until you 'save' the configuration again.
As a test, I logged into OPNsense, went to the DNS Resolver page, and submitted a save, even though no changes on my side had happened.
Bingo.. once it applied, active DHCP clients were now resolvable on my network.
The text was updated successfully, but these errors were encountered: