-
Notifications
You must be signed in to change notification settings - Fork 757
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
24.7.8 - ISC DHCPv4 does not register new leases in Unbound #8075
Comments
The most common issue here is the unbound DHCP watcher daemon being stopped most likely because of garbage host names given by strange devices in the network. You can check if the watcher is running...
Cheers, |
Thanks for your response Franco. I don't have an unbound_dhcp.pid process in that directory. I've got an unbound.pid and a unbound_logger.pid and unbound.pid is running. What would you recommend in terms of logging to diagnose the issue? |
Just to be sure are we talking about dynamic or static leases from ISC DHCP? |
Dynamic |
Ok, and Services: Unbound DNS: General: Register ISC DHCP4 Leases is enabled? |
OK, When you hit apply there should be a / |
Sorry mate, I'm a little confused. It's always been selected so shouldn't that process be running already? Edit: OK, so I pressed apply even though I didn't change anything and the process appears to be running. Is this the process which registers DHCP leases? Is there some way to find out why this process might be terminating? |
That would be the next question. For now let's see when it stops and try to run it manually when it disappears:
|
I found this issue since i am currently running 24.7.9_1-amd64 and the leases that ISC DHCPv4 issues are not recognized by unbound. After reading through this issue, i have found that the python-script was not running.
Meanwhile, the unbound log shows only the "daemonize unbound dhcpd watcher." message emitted from the python script, and no reason why it stopped. Thank you for your work on opnsense. If i can do anything to help to debug this issue, feel free to ask! |
@brotkastn see here on how to debug #8075 (comment) |
Easier said than done:
however, i started this inside tmux. maybe i get debug output once it dies. Thanks for your help, have a nice day, |
Looks like I forgot the
|
Good to see some activity on this issue. Just an update from my end: unbound_dhcpd.pid is still running after I restarted it but I think this is a somewhat sporadic issue where the process dies/terminates randomly. Should I also run a debug log? |
To catch a specific issue in your environment that would help fix it, yes :) |
I seem to have been suffering from a similar issue and got redirected from the opnsense forums after posting about my issue. In my case, the process was running, I killed it and restarted it:
It seems a restart of the proces was enough in my case. After that, a dig against unbound resolves a new lease. I'll monitor the situation. |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
Note: This is a duplicate of Issue #7376 which was closed but it appears that there are other people who are experiencing this issue too. I opened a forum post on this issue here: https://forum.opnsense.org/index.php?topic=43814
New registered DHCP names are not registered inside the DNS (Unbound) even though so "Register ISC DHCP4 Leases" is enabled.
I think the issue is there since 24.1 but not 100%.
At least I can say it since 24.1.3.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Hostname should be registered automatically in the Unbound DNS.
Describe alternatives you considered
Restart of Unbound fixes the issue.
Screenshots
N/A
Relevant log files
Please let me know which logs are required
Additional context
Add any other context about the problem here.
Environment
OPNsense 24.7.8-amd64
Running under Proxmox 8.2.10
The text was updated successfully, but these errors were encountered: