OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: Christophe999s on January 29, 2023, 04:25:39 pm

Title: Adding or removing DHCP lease causes Unbound reporting to stop
Post by: Christophe999s on January 29, 2023, 04:25:39 pm
First of all, thanks to the devs for all the hard work!
When I add or remove a new static lease in the DHCP service, Unbound reporting stops.
It starts again when going into Reporting > Settings and clicking the Save button on Unbound DNS reporting
Title: Re: Adding or removing DHCP lease causes Unbound reporting to stop
Post by: bob9744 on March 06, 2023, 01:34:19 pm
Same here - just noticed this morning after fiddling with static leases yesterday (reporting stopped around midday yesterday, around when I was fiddling the network).
Title: Re: Adding or removing DHCP lease causes Unbound reporting to stop
Post by: Fright on March 06, 2023, 04:15:05 pm
I think it's worth raising a ticket on github: unbound_hosts_generate() function is HUPping unbound at the end. unbound logger gracefully stops on this case. maybe it should either give the logger a chance to reopen a pipe in this case or restart unbound on unbound_hosts_generate() (is it worth it?) or (re)started after unbound HUPping (simplest) or maybe the logger should be started from dnsbl module? better to discuss with the devs
Title: Re: Adding or removing DHCP lease causes Unbound reporting to stop
Post by: CJ on March 06, 2023, 04:19:12 pm
Interesting.  I wonder if that's what happened to me.  I hadn't connected the two events but I did add static leases and I did have the reporting stop.
Title: Re: Adding or removing DHCP lease causes Unbound reporting to stop
Post by: Christophe999s on March 07, 2023, 08:10:48 am
Issue has been opened: https://github.com/opnsense/core/issues/6402