Frequent unbound restarts
-
One solution would be for DHCP service to write new leases to the dhcp lease file but instead of restarting unbound, DHCP service would use unbound-control(8) to notify unbound about new leases.
Like I posted earlier, that's what pfblockerNG strategy is with Live Reload enabled.
-
@RonpfS said in Frequent unbound restarts:
Like I posted earlier,
I think I recall my answer to that what you said back then.
Something like "then where is this smart reloading ?". I guess I felt for "can't find it so it isn't there" way of thinking.
Well, I was very wrong.
I found the DNSBL reloading using unbound-control in pfBlockerNG.
Lots of condition apply, otherwise :Reloading Unbound Resolver..... completed [ 06/27/20 12:14:16 ]
which means : unbound is restarted. No Liveupdate.
If this condition isn't met : unbound will get restarted - unbound-control won't be used :
Once the TLD Domain limit below is exceeded, the balance of the Domains will be listed as-is. IE: Blocking only the listed Domain (Not Sub-Domains) TLD Domain Limit Restrictions: < 1.0GB RAM - Max 100k Domains < 1.5GB RAM - Max 150k Domains < 2.0GB RAM - Max 200k Domains < 2.5GB RAM - Max 250k Domains < 3.0GB RAM - Max 400k Domains < 4.0GB RAM - Max 600k Domains < 5.0GB RAM - Max 1.0M Domains < 6.0GB RAM - Max 1.5M Domains < 7.0GB RAM - Max 2.5M Domains > 7.0GB RAM - > 2.5M Domains
I've a 220K+ domain list : "Liveupdate" never executed for me because my pfSense has 2 Gbytes of RAM.
And you're right, unbound-control could be used to transmit "DHCP lease DNS details" into unbound to insert/update/remove . It's pretty straight forward.
I guess it's a matter of replacing the "dhcpleases" process with a shell script that uses unbound-control.
No more need for the "/var/unbound/dhcpleases_entries.conf" - just inject all found active leases into unbound, and done. -
I lowered the number of DNBL entries :
= somewhat less then 70000 entries : DNSBL = 43802 to be exact. See below.
...... TLD finalize... completed [ 06/29/20 00:00:20 ] Saving DNSBL database... completed Resolver Live Sync analysis... completed [ 06/29/20 00:00:21 ] Resolver Live Sync finalizing: Remove local-zone(s): removed 270 zones Remove local-data(s): removed 205 datas Add local-zone(s): added 606 zones Add local-data(s): added 393 datas Resolver Live Sync... completed [ 06/29/20 00:00:22 ] DNSBL update [ 43799 | PASSED ]... completed DNSBL DEBUG..[ Data(s): 43802 Zone(s): 32065 | 06/29/20 00:00:25 ] ....
These are synced in with unbound-control - NOT restarting unbound.
My last unbound restart :
Jun 20 10:24:23 pfsense unbound: [3443:0] notice: Restart of unbound 1.10.1.
That's more the a week ago. So I'm pretty sure even pfBlockerNG-devel doesn't restart unbound any more,.
This method should be used for syncing in (and out ?) DHCP leases, and the issue would be gone.
The "dhcpleases" process could be replaced with a (shell) script that parses the DHCP leases, and put them "into" "unbound" instead of the less sophisticated "reload/restart". -
@Gertjan I got back too late to answer your previous response so I'll answer this one. I believe unbound is doing the right thing: when it gets a HUP signal it restarts. That's standard Unix behaviour. dhcpleases has a bug in that it is sending a HUP signal when it can only ever effect the local zone. Since it effects the local zone, it should be using unbound-control to reload that zone only. In the worst case you can do "local_zone_remove <local zone>" and then add it back. There is no reason to restart the entire server since only a single zone will be affected by DHCP leases.
For PFSense, it makes sense that it sometimes reloads the whole server because it can modify potentially any zone. DHCP cannot.
EDIT: Oh, never mind. Didn't properly read your last post. We're on the same page now. :)
-
Since there is a simple way to fix this extremely frustrating problem, is there any progress on it?
Like, please Netgate, one of the most useful features is not working.
-
What is not working ?
This thread highlights two possible reasons why unbound is restarting.
Because it should restart to take changes in account.@sotirone said in Frequent unbound restarts:
Since there is a simple way to fix this extremely frustrating problem, is there any progress on it?
Don't get it.
What progress is needed if a simple fix already exists ?
An even more simple fix ?You agree with me that their will never be a situation that a program/service/ functionality/etc will work for every type of scenario ?
-
@Gertjan Our problem is mostly because of the dhcpleases sending a HUP request and triggering the unbound reload.
So, changing the code to use unbound-control instead of sending a HUP request is the easy fix, no?
-
I would qualify this as "easy" : Remove the check from here :
Changing https://github.com/pfsense/FreeBSD-ports/blob/9e4bb79caf876017a31a09176947b88d69588f1b/sysutils/dhcpleases/files/dhcpleases.c
is less forward.
Because using unbound-control to administer unbound's internal structures and records is less documented / less known (my opinion).
One minor glitch and the entire local DNS goes down ... or contains wrong info which is even worse.This small program, called dhcpleases,isa process that keeps running as a daemon, wakes up when the dhcp.leases file changes, as this would happen if the DHCP server 'changes' something, like when a new lease is attributed - or a lease is renewed. Note that the latter case is not actually changing the IP thus the required DNS info.
All active leases are then formatted for the system /etc/hosts file, and copied over to that file. When done, unbound is signalled = HUPped. Upon receiving of this signal, unbound .... it restarts it self.
If dhcpleases was using unbound-control, it could transmit the unbound process the 'new' or 'renewed' host name and IP address from the lease info, one by one ( ! ) .
I'm wondering :
When we have a big network, and many, like 48 devices that are hooked up to a 48 ports switch, and this switch powers down and up, 48 PC's will receive an "interface UP" signal. These 48 PC's will fire a DHCP-client request to the DHCP server, pfSense.
48 renewed (== updated) leases will get written, actually : updated, to /var/dhcpd/var/db/dhcp.leases file in a rapid manor.Parsing the /var/dhcpd/var/db/dhcp.leases and adding the distilled content to /etc/hosts file is one thing.
Firing 'unbound-control', a big process by itself, to transmit just one changed 'host name' + IP address, multiplied by 48 because 48 PC are renewing, is another thing.Note : I activated "DHCP Registration" in the Unbound config settings : it look likes dhcpleases contains a minor bug : the DHCP info is added 3 (identical) times :
Have a look at my /etc/hosts file :127.0.0.1 localhost localhost.my-pfsense.domain ::1 localhost localhost.my-pfsense.domain 192.168.1.1 pfsense.my-pfsense.domain pfsense 2001:470:1f13:5c0:2::1 pfsense.my-pfsense.domain pfsense 188.165.53.87 ns1.my-pfsense.domain ns1 2001:41d0:2:927b::3 ns1.my-pfsense.domain ns1 10.10.10.1 pfb.my-pfsense.domain pfb 192.168.2.1 portal.my-pfsense.domain portal # dhcpleases automatically entered 192.168.1.121 DESKTOP-SHTTTGB.my-pfsense.domain DESKTOP-SHTTTGB # dynamic entry from dhcpd.leases 192.168.1.120 Gauche2.my-pfsense.domain Gauche2 # dynamic entry from dhcpd.leases 192.168.1.119 iPhone6sdeVera.my-pfsense.domain iPhone6sdeVera # dynamic entry from dhcpd.leases 192.168.1.111 iPhone11deVera.my-pfsense.domain iPhone11deVera # dynamic entry from dhcpd.leases 192.168.2.92 Jerome-EGC.my-pfsense.domain Jerome-EGC # dynamic entry from dhcpd.leases 192.168.2.139 Air-van-dirk.my-pfsense.domain Air-van-dirk # dynamic entry from dhcpd.leases 192.168.2.203 iPadProdier2019.my-pfsense.domain iPadProdier2019 # dynamic entry from dhcpd.leases 192.168.2.125 Galaxy-A71.my-pfsense.domain Galaxy-A71 # dynamic entry from dhcpd.leases 192.168.2.77 Galaxy-Tab-A.my-pfsense.domain Galaxy-Tab-A # dynamic entry from dhcpd.leases 192.168.2.224 HUAWEI_P_smart_2019-ce0dc.my-pfsense.domain HUAWEI_P_smart_2019-ce0dc # dynamic entry from dhcpd.leases 192.168.2.201 Galaxy-A70.my-pfsense.domain Galaxy-A70 # dynamic entry from dhcpd.leases 192.168.2.192 iPhone.my-pfsense.domain iPhone # dynamic entry from dhcpd.leases 192.168.2.147 Galaxy-Tab-S2.my-pfsense.domain Galaxy-Tab-S2 # dynamic entry from dhcpd.leases 192.168.2.217 Galaxy-S9.my-pfsense.domain Galaxy-S9 # dynamic entry from dhcpd.leases 192.168.2.153 iPad-de-Yann.my-pfsense.domain iPad-de-Yann # dynamic entry from dhcpd.leases # dhcpleases automatically entered 192.168.1.121 DESKTOP-SHTTTGB.my-pfsense.domain DESKTOP-SHTTTGB # dynamic entry from dhcpd.leases 192.168.1.120 Gauche2.my-pfsense.domain Gauche2 # dynamic entry from dhcpd.leases 192.168.1.119 iPhone6sdeVera.my-pfsense.domain iPhone6sdeVera # dynamic entry from dhcpd.leases 192.168.1.111 iPhone11deVera.my-pfsense.domain iPhone11deVera # dynamic entry from dhcpd.leases 192.168.2.203 iPadProdier2019.my-pfsense.domain iPadProdier2019 # dynamic entry from dhcpd.leases 192.168.2.92 Jerome-EGC.my-pfsense.domain Jerome-EGC # dynamic entry from dhcpd.leases 192.168.2.139 Air-van-dirk.my-pfsense.domain Air-van-dirk # dynamic entry from dhcpd.leases 192.168.2.147 Galaxy-Tab-S2.my-pfsense.domain Galaxy-Tab-S2 # dynamic entry from dhcpd.leases 192.168.2.217 Galaxy-S9.my-pfsense.domain Galaxy-S9 # dynamic entry from dhcpd.leases 192.168.2.125 Galaxy-A71.my-pfsense.domain Galaxy-A71 # dynamic entry from dhcpd.leases 192.168.2.77 Galaxy-Tab-A.my-pfsense.domain Galaxy-Tab-A # dynamic entry from dhcpd.leases 192.168.2.224 HUAWEI_P_smart_2019-ce0dc.my-pfsense.domain HUAWEI_P_smart_2019-ce0dc # dynamic entry from dhcpd.leases 192.168.2.201 Galaxy-A70.my-pfsense.domain Galaxy-A70 # dynamic entry from dhcpd.leases 192.168.2.192 iPhone.my-pfsense.domain iPhone # dynamic entry from dhcpd.leases 192.168.2.153 iPad-de-Yann.my-pfsense.domain iPad-de-Yann # dynamic entry from dhcpd.leases # dhcpleases automatically entered 192.168.1.121 DESKTOP-SHTTTGB.my-pfsense.domain DESKTOP-SHTTTGB # dynamic entry from dhcpd.leases 192.168.1.120 Gauche2.my-pfsense.domain Gauche2 # dynamic entry from dhcpd.leases 192.168.1.119 iPhone6sdeVera.my-pfsense.domain iPhone6sdeVera # dynamic entry from dhcpd.leases 192.168.1.111 iPhone11deVera.my-pfsense.domain iPhone11deVera # dynamic entry from dhcpd.leases 192.168.2.203 iPadProdier2019.my-pfsense.domain iPadProdier2019 # dynamic entry from dhcpd.leases 192.168.2.92 Jerome-EGC.my-pfsense.domain Jerome-EGC # dynamic entry from dhcpd.leases 192.168.2.139 Air-van-dirk.my-pfsense.domain Air-van-dirk # dynamic entry from dhcpd.leases 192.168.2.147 Galaxy-Tab-S2.my-pfsense.domain Galaxy-Tab-S2 # dynamic entry from dhcpd.leases 192.168.2.217 Galaxy-S9.my-pfsense.domain Galaxy-S9 # dynamic entry from dhcpd.leases 192.168.2.125 Galaxy-A71.my-pfsense.domain Galaxy-A71 # dynamic entry from dhcpd.leases 192.168.2.77 Galaxy-Tab-A.my-pfsense.domain Galaxy-Tab-A # dynamic entry from dhcpd.leases 192.168.2.224 HUAWEI_P_smart_2019-ce0dc.my-pfsense.domain HUAWEI_P_smart_2019-ce0dc # dynamic entry from dhcpd.leases 192.168.2.201 Galaxy-A70.my-pfsense.domain Galaxy-A70 # dynamic entry from dhcpd.leases 192.168.2.192 iPhone.my-pfsense.domain iPhone # dynamic entry from dhcpd.leases 192.168.2.153 iPad-de-Yann.my-pfsense.domain iPad-de-Yann # dynamic entry from dhcpd.leases
This has probably no side effects.
-
What is the status on this? I see a lot of ubound restarts, I can't believe this issue has not been fixed since 4 years. Is it that fix is impossible, too hard, or developers are unable to recognize this problem?
-
@lutel Still broken as you can see.
It is actually working in OpnSense, which was previously a pfSense fork but now refactored and based on HardenedBSD rather than FreeBSD.
-
I could present my :
Unbound just restart again.
Or was it because I just upgraded, at 07h00 am, the package pfBlockerNG-devel to the latest ...14 ?
Something I do nearly every day as fine polishing is happening after pfSense 2.5.0 came out.If not, I guess my 'unbound' restarts .... one or twice a week, or less.
unbound restarts can be explained. Up to you to chose if it should happen. This forum is filled up with the why/when/what/what else.So, we have the same code ... what differs is the set up (the admin).
Should I details mine ? -
@lutel I detailed how to fix it more than a year ago. The IPv6 story also hasn't been addressed for years. I think it's time to accept that this product is dying and move onto products that are still being actively improved.
-
@jasonarlouser Your excellent write-up helped me understand this issue -- thank you. I was seeing the same frequent restarts w/ dhcp computer names and long restart times due to pfBlockerNG.
I recently switched (back) to OpnSense, partly for this reason (and partly due to the widening community/pro version split), and have been happy to see that the OpnSense Unbound package now has rudimentary DNSBL baked-in. It doesn't sinkhole to a specific IP for stats-gathering like pfBlockerNG, but it certainly blocks well enough. That, plus zone reloads with unbound-control have (so far) led to a much better experience.
-
Sorry to hijack this topic but I want to make sure I'm having the same issue:
I have a pihole set as the primary DNS on the DHCP lease. Pihole sends all DNS requests to Pfsense on the same subnet.
Originaly I had pfsense set to forward to clouflare (1.1.1.1) but now I unchecked forwarder mode (see screenshot below)
The dns requests were much faster and website browsing feels faster (so that is positive). But the down side is that one or two times daily (usually in the midnight and when waking up in the morning we have no internet). This is purely a dns issue because I can browse to external IP's (for example 1.1.1.1).
When checking the logs I see:
dhcplog:
Mar 3 08:41:30 Porsche dhclient[15017]: connection closed Mar 3 08:41:30 Porsche dhclient[15017]: exiting. Mar 3 08:41:42 Porsche dhclient[53164]: Cannot open or create pidfile: No such file or directory Mar 3 08:41:49 Porsche dhclient[64571]: PREINIT Mar 3 08:41:49 Porsche dhclient[53164]: DHCPREQUEST on igb0 to 255.255.255.255 port 67 Mar 3 08:41:50 Porsche dhclient[53164]: DHCPREQUEST on igb0 to 255.255.255.255 port 67 Mar 3 08:41:52 Porsche dhclient[53164]: DHCPREQUEST on igb0 to 255.255.255.255 port 67 Mar 3 08:41:56 Porsche dhclient[53164]: DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 1 Mar 3 08:41:57 Porsche dhclient[53164]: DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 1 Mar 3 08:41:58 Porsche dhclient[53164]: DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 2 Mar 3 08:42:00 Porsche dhclient[53164]: DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 5 Mar 3 08:42:01 Porsche dhcpd[23031]: DHCPREQUEST for 172.16.108.148 from 44:bb:3b:01:3f:86 via igb1.10 Mar 3 08:42:01 Porsche dhcpd[23031]: DHCPACK on 172.16.108.148 to 44:bb:3b:01:3f:86 via igb1.10 Mar 3 08:42:01 Porsche dhcpleases[3459]: Sending HUP signal to dns daemon(11064) Mar 3 08:42:01 Porsche dhcpleases[3459]: Could not deliver signal HUP to process 11064: No such process. Mar 3 08:42:05 Porsche dhclient[53164]: DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 12 Mar 3 08:42:05 Porsche dhclient[53164]: DHCPOFFER from 192.168.100.1 Mar 3 08:42:05 Porsche dhclient[65911]: ARPSEND Mar 3 08:42:07 Porsche dhclient[66097]: ARPCHECK Mar 3 08:42:07 Porsche dhclient[53164]: DHCPREQUEST on igb0 to 255.255.255.255 port 67 Mar 3 08:42:08 Porsche dhclient[53164]: DHCPACK from 192.168.100.1 Mar 3 08:42:08 Porsche dhclient[66684]: BOUND Mar 3 08:42:08 Porsche dhclient[67239]: Deleting old routes Mar 3 08:42:08 Porsche dhclient[68329]: Starting add_new_address() Mar 3 08:42:08 Porsche dhclient[68387]: ifconfig igb0 inet 192.168.100.10 netmask 255.255.255.0 broadcast 192.168.100.255 Mar 3 08:42:08 Porsche dhclient[68863]: New IP Address (igb0): 192.168.100.10 Mar 3 08:42:08 Porsche dhclient[68989]: New Subnet Mask (igb0): 255.255.255.0 Mar 3 08:42:08 Porsche dhclient[69220]: New Broadcast Address (igb0): 192.168.100.255 Mar 3 08:42:08 Porsche dhclient[69506]: New Routers (igb0): 192.168.100.1 Mar 3 08:42:08 Porsche dhclient[69813]: Adding new routes to interface: igb0 Mar 3 08:42:08 Porsche dhclient[71080]: /sbin/route add -host 192.168.100.1 -iface igb0 Mar 3 08:42:08 Porsche dhclient[71531]: /sbin/route add default 192.168.100.1 Mar 3 08:42:08 Porsche dhclient[71760]: Creating resolv.conf Mar 3 08:42:08 Porsche dhclient[53164]: bound to 192.168.100.10 -- renewal in 30 seconds. Mar 3 08:42:08 Porsche dhcpd[23031]: uid lease 192.168.2.245 for client 18:c0:4d:68:33:da is duplicate on 192.168.2.0/24 Mar 3 08:42:08 Porsche dhcpd[23031]: DHCPDISCOVER from 18:c0:4d:68:33:da via igb1 Mar 3 08:42:08 Porsche dhcpd[23031]: DHCPOFFER on 192.168.2.100 to 18:c0:4d:68:33:da via igb1 Mar 3 08:42:08 Porsche dhcpd[23031]: uid lease 192.168.2.245 for client 18:c0:4d:68:33:da is duplicate on 192.168.2.0/24 Mar 3 08:42:08 Porsche dhcpd[23031]: DHCPREQUEST for 192.168.2.100 (192.168.2.1) from 18:c0:4d:68:33:da via igb1 Mar 3 08:42:08 Porsche dhcpd[23031]: DHCPACK on 192.168.2.100 to 18:c0:4d:68:33:da via igb1 Mar 3 08:42:09 Porsche dhcpleases[81312]: Sending HUP signal to dns daemon(11064) Mar 3 08:42:09 Porsche dhcpleases[81312]: Could not deliver signal HUP to process 11064: No such process. Mar 3 08:42:09 Porsche dhcpleases[86520]: Sending HUP signal to dns daemon(11064) Mar 3 08:42:10 Porsche dhcpleases[86520]: Could not deliver signal HUP to process 11064: No such process. Mar 3 08:42:12 Porsche dhcpleases[97689]: Sending HUP signal to dns daemon(11064) Mar 3 08:42:12 Porsche dhcpleases[97689]: Could not deliver signal HUP to process 11064: No such process. Mar 3 08:42:19 Porsche dhcpd[23031]: uid lease 172.16.108.108 for client 02:0f:b5:78:8f:32 is duplicate on 172.16.108.0/24 Mar 3 08:42:19 Porsche dhcpd[23031]: DHCPREQUEST for 172.16.108.65 from 02:0f:b5:78:8f:32 via igb1.10 Mar 3 08:42:19 Porsche dhcpd[23031]: DHCPACK on 172.16.108.65 to 02:0f:b5:78:8f:32 via igb1.10 Mar 3 08:42:38 Porsche dhclient[71955]: DHCPREQUEST on igb0 to 192.168.100.1 port 67 Mar 3 08:42:39 Porsche dhclient[71955]: DHCPACK from 192.168.100.1 Mar 3 08:42:39 Porsche dhclient[23088]: RENEW Mar 3 08:42:39 Porsche dhclient[23455]: Creating resolv.conf Mar 3 08:42:39 Porsche dhclient[71955]: bound to 192.168.100.10 -- renewal in 30 seconds. Mar 3 08:42:48 Porsche dhcpd[23031]: uid lease 172.16.108.116 for client 64:16:66:87:71:39 is duplicate on 172.16.108.0/24 Mar 3 08:42:48 Porsche dhcpd[23031]: DHCPREQUEST for 172.16.108.69 from 64:16:66:87:71:39 via igb1.10 Mar 3 08:42:48 Porsche dhcpd[23031]: DHCPACK on 172.16.108.69 to 64:16:66:87:71:39 via igb1.10 Mar 3 08:42:52 Porsche dhcpd[23031]: DHCPRELEASE of 172.16.108.73 from 64:16:66:c0:7b:09 via igb1.10 (not found) Mar 3 08:43:03 Porsche dhcpd[91624]: Internet Systems Consortium DHCP Server 4.4.2 Mar 3 08:43:03 Porsche dhcpd[91624]: Copyright 2004-2020 Internet Systems Consortium. Mar 3 08:43:03 Porsche dhcpd[91624]: All rights reserved. Mar 3 08:43:03 Porsche dhcpd[91624]: For info, please visit https://www.isc.org/software/dhcp/ Mar 3 08:43:03 Porsche dhcpd[91624]: Config file: /etc/dhcpd.conf Mar 3 08:43:03 Porsche dhcpd[91624]: Internet Systems Consortium DHCP Server 4.4.2 Mar 3 08:43:03 Porsche dhcpd[91624]: Database file: /var/db/dhcpd.leases Mar 3 08:43:03 Porsche dhcpd[91624]: Copyright 2004-2020 Internet Systems Consortium. Mar 3 08:43:03 Porsche dhcpd[91624]: PID file: /var/run/dhcpd.pid Mar 3 08:43:03 Porsche dhcpd[91624]: All rights reserved. Mar 3 08:43:03 Porsche dhcpd[91624]: For info, please visit https://www.isc.org/software/dhcp/ Mar 3 08:43:03 Porsche dhcpd[91624]: Wrote 0 class decls to leases file. Mar 3 08:43:03 Porsche dhcpd[91624]: Wrote 0 deleted host decls to leases file. Mar 3 08:43:03 Porsche dhcpd[91624]: Wrote 0 new dynamic host decls to leases file. Mar 3 08:43:03 Porsche dhcpd[91624]: Wrote 120 leases to leases file. Mar 3 08:43:03 Porsche dhcpd[91624]: Listening on BPF/igb1.20/00:e0:67:21:30:bd/10.10.10.0/24 Mar 3 08:43:03 Porsche dhcpd[91624]: Sending on BPF/igb1.20/00:e0:67:21:30:bd/10.10.10.0/24 Mar 3 08:43:03 Porsche dhcpd[91624]: Listening on BPF/igb1.10/00:e0:67:21:30:bd/172.16.108.0/24 Mar 3 08:43:03 Porsche dhcpd[91624]: Sending on BPF/igb1.10/00:e0:67:21:30:bd/172.16.108.0/24 Mar 3 08:43:03 Porsche dhcpd[91624]: Listening on BPF/igb1/00:e0:67:21:30:bd/192.168.2.0/24 Mar 3 08:43:03 Porsche dhcpd[91624]: Sending on BPF/igb1/00:e0:67:21:30:bd/192.168.2.0/24 Mar 3 08:43:03 Porsche dhcpd[91624]: Sending on Socket/fallback/fallback-net Mar 3 08:43:03 Porsche dhcpd[91624]: Server starting service. Mar 3 08:43:03 Porsche dhcpleases[97689]: Sending HUP signal to dns daemon(81955) Mar 3 08:43:03 Porsche dhcpleases[97689]: Sending HUP signal to dns daemon(81955) Mar 3 08:43:04 Porsche dhclient[65006]: connection closed Mar 3 08:43:04 Porsche dhclient[65006]: exiting. Mar 3 08:43:58 Porsche dhclient[10769]: Cannot open or create pidfile: No such file or directory Mar 3 08:44:03 Porsche dhclient[13655]: PREINIT Mar 3 08:44:03 Porsche dhclient[14564]: EXPIRE Mar 3 08:44:03 Porsche dhclient[14980]: Deleting old routes Mar 3 08:44:03 Porsche dhclient[16065]: PREINIT Mar 3 08:44:03 Porsche dhclient[10769]: DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 2 Mar 3 08:44:03 Porsche dhclient[10769]: DHCPDISCOVER on igb0 to 255.255.255.255 port 67 interval 3 Mar 3 08:44:03 Porsche dhclient[10769]: DHCPOFFER from 212.142.39.9 Mar 3 08:44:03 Porsche dhclient[16922]: ARPSEND Mar 3 08:44:03 Porsche dhclient[10769]: DHCPOFFER from 212.142.39.9 Mar 3 08:44:03 Porsche dhclient[10769]: DHCPOFFER already seen. Mar 3 08:44:05 Porsche dhclient[17350]: ARPCHECK Mar 3 08:44:05 Porsche dhclient[10769]: DHCPREQUEST on igb0 to 255.255.255.255 port 67 Mar 3 08:44:05 Porsche dhclient[10769]: DHCPACK from 212.142.39.9 Mar 3 08:44:05 Porsche dhclient[18240]: BOUND Mar 3 08:44:05 Porsche dhclient[18973]: Deleting old routes Mar 3 08:44:05 Porsche dhclient[19356]: Starting add_new_address() Mar 3 08:44:05 Porsche dhclient[19543]: ifconfig igb0 inet 77.xx.xx.xx netmask 255.255.255.0 broadcast 255.255.255.255 Mar 3 08:44:05 Porsche dhclient[19739]: New IP Address (igb0): 77.xx.xx.xx Mar 3 08:44:05 Porsche dhclient[20040]: New Subnet Mask (igb0): 255.255.255.0 Mar 3 08:44:05 Porsche dhclient[20169]: New Broadcast Address (igb0): 255.255.255.255 Mar 3 08:44:05 Porsche dhclient[20498]: New Routers (igb0): 77.xx.xx.1 Mar 3 08:44:05 Porsche dhclient[20648]: Adding new routes to interface: igb0 Mar 3 08:44:05 Porsche dhclient[20963]: Creating resolv.conf Mar 3 08:44:05 Porsche dhclient[10769]: bound to 77.xx.xx.xx -- renewal in 78309 seconds. Mar 3 08:44:07 Porsche dhcpleases[49551]: Sending HUP signal to dns daemon(48351) Mar 3 08:44:09 Porsche dhcpd[60926]: Internet Systems Consortium DHCP Server 4.4.2 Mar 3 08:44:09 Porsche dhcpd[60926]: Copyright 2004-2020 Internet Systems Consortium. Mar 3 08:44:09 Porsche dhcpd[60926]: All rights reserved. Mar 3 08:44:09 Porsche dhcpd[60926]: For info, please visit https://www.isc.org/software/dhcp/ Mar 3 08:44:09 Porsche dhcpd[60926]: Config file: /etc/dhcpd.conf Mar 3 08:44:09 Porsche dhcpd[60926]: Database file: /var/db/dhcpd.leases Mar 3 08:44:09 Porsche dhcpd[60926]: PID file: /var/run/dhcpd.pid Mar 3 08:44:09 Porsche dhcpd[60926]: Internet Systems Consortium DHCP Server 4.4.2 Mar 3 08:44:09 Porsche dhcpd[60926]: Copyright 2004-2020 Internet Systems Consortium. Mar 3 08:44:09 Porsche dhcpd[60926]: All rights reserved. Mar 3 08:44:09 Porsche dhcpd[60926]: For info, please visit https://www.isc.org/software/dhcp/ Mar 3 08:44:09 Porsche dhcpd[60926]: Wrote 0 class decls to leases file. Mar 3 08:44:09 Porsche dhcpd[60926]: Wrote 0 deleted host decls to leases file. Mar 3 08:44:09 Porsche dhcpd[60926]: Wrote 0 new dynamic host decls to leases file. Mar 3 08:44:09 Porsche dhcpd[60926]: Wrote 120 leases to leases file. Mar 3 08:44:09 Porsche dhcpd[60926]: Listening on BPF/igb1.20/00:e0:67:21:30:bd/10.10.10.0/24 Mar 3 08:44:09 Porsche dhcpd[60926]: Sending on BPF/igb1.20/00:e0:67:21:30:bd/10.10.10.0/24 Mar 3 08:44:09 Porsche dhcpd[60926]: Listening on BPF/igb1.10/00:e0:67:21:30:bd/172.16.108.0/24 Mar 3 08:44:09 Porsche dhcpd[60926]: Sending on BPF/igb1.10/00:e0:67:21:30:bd/172.16.108.0/24 Mar 3 08:44:09 Porsche dhcpd[60926]: Listening on BPF/igb1/00:e0:67:21:30:bd/192.168.2.0/24 Mar 3 08:44:09 Porsche dhcpd[60926]: Sending on BPF/igb1/00:e0:67:21:30:bd/192.168.2.0/24 Mar 3 08:44:09 Porsche dhcpd[60926]: Sending on Socket/fallback/fallback-net Mar 3 08:44:09 Porsche dhcpd[60926]: Server starting service. Mar 3 08:44:09 Porsche dhcpleases[49551]: Sending HUP signal to dns daemon(48351) Mar 3 08:44:09 Porsche dhcpleases[49551]: Sending HUP signal to dns daemon(48351) Mar 3 08:44:15 Porsche dhcpd[60926]: reuse_lease: lease age 134 (secs) under 25% threshold, reply with unaltered, existing lease for 172.16.108.148 Mar 3 08:44:15 Porsche dhcpd[60926]: DHCPDISCOVER from 44:bb:3b:01:3f:86 via igb1.10 Mar 3 08:44:15 Porsche dhcpd[60926]: DHCPOFFER on 172.16.108.148 to 44:bb:3b:01:3f:86 via igb1.10 Mar 3 08:44:15 Porsche dhcpd[60926]: reuse_lease: lease age 134 (secs) under 25% threshold, reply with unaltered, existing lease for 172.16.108.148 Mar 3 08:44:15 Porsche dhcpd[60926]: DHCPREQUEST for 172.16.108.148 (172.16.108.1) from 44:bb:3b:01:3f:86 via igb1.10 Mar 3 08:44:15 Porsche dhcpd[60926]: DHCPACK on 172.16.108.148 to 44:bb:3b:01:3f:86 via igb1.10 Mar 3 08:44:16 Porsche dhcpd[60926]: reuse_lease: lease age 600 (secs) under 25% threshold, reply with unaltered, existing lease for 172.16.108.144 Mar 3 08:44:16 Porsche dhcpd[60926]: DHCPDISCOVER from 44:bb:3b:00:c3:d5 via igb1.10 Mar 3 08:44:16 Porsche dhcpd[60926]: DHCPOFFER on 172.16.108.144 to 44:bb:3b:00:c3:d5 via igb1.10 Mar 3 08:44:16 Porsche dhcpd[60926]: reuse_lease: lease age 600 (secs) under 25% threshold, reply with unaltered, existing lease for 172.16.108.144 Mar 3 08:44:16 Porsche dhcpd[60926]: DHCPREQUEST for 172.16.108.144 (172.16.108.1) from 44:bb:3b:00:c3:d5 via igb1.10
resolver
Mar 3 08:43:02 Porsche unbound[81955]: [81955:0] notice: init module 0: validator Mar 3 08:43:02 Porsche unbound[81955]: [81955:0] notice: init module 1: iterator Mar 3 08:43:02 Porsche unbound[81955]: [81955:0] info: start of service (unbound 1.13.0). Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: service stopped (unbound 1.13.0). Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 0: 3 queries, 0 answers from cache, 3 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 0: requestlist max 3 avg 1.66667 exceeded 0 jostled 0 Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 1: 8 queries, 0 answers from cache, 8 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 1: requestlist max 7 avg 3.75 exceeded 0 jostled 0 Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 2: 4 queries, 0 answers from cache, 4 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 2: requestlist max 4 avg 2.25 exceeded 0 jostled 0 Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 3: 7 queries, 0 answers from cache, 7 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 3: requestlist max 6 avg 3.28571 exceeded 0 jostled 0 Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] notice: Restart of unbound 1.13.0. Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] notice: init module 0: validator Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] notice: init module 1: iterator Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: start of service (unbound 1.13.0). Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: service stopped (unbound 1.13.0). Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 0: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 0: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 1: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 1: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 2: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 2: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 3: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: server stats for thread 3: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] notice: Restart of unbound 1.13.0. Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] notice: init module 0: validator Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] notice: init module 1: iterator Mar 3 08:43:03 Porsche unbound[81955]: [81955:0] info: start of service (unbound 1.13.0). Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] notice: init module 0: validator Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] notice: init module 1: iterator Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: start of service (unbound 1.13.0). Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: service stopped (unbound 1.13.0). Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: server stats for thread 0: 1 queries, 0 answers from cache, 1 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: server stats for thread 0: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: server stats for thread 1: 1 queries, 0 answers from cache, 1 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: server stats for thread 1: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: server stats for thread 2: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: server stats for thread 2: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: server stats for thread 3: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: server stats for thread 3: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] notice: Restart of unbound 1.13.0. Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] notice: init module 0: validator Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] notice: init module 1: iterator Mar 3 08:44:07 Porsche unbound[48351]: [48351:0] info: start of service (unbound 1.13.0). Mar 3 08:44:08 Porsche unbound[48351]: [48351:3] info: generate keytag query _ta-4f66. NULL IN Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: service stopped (unbound 1.13.0). Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 0: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 0: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 1: 1 queries, 0 answers from cache, 1 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 1: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: average recursion processing time 0.364789 sec Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: histogram of recursion processing times Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: [25%]=0 median[50%]=0 [75%]=0 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: lower(secs) upper(secs) recursions Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: 0.262144 0.524288 1 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 2: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 2: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 3: 1 queries, 0 answers from cache, 1 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 3: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: average recursion processing time 0.074963 sec Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: histogram of recursion processing times Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: [25%]=0 median[50%]=0 [75%]=0 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: lower(secs) upper(secs) recursions Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: 0.065536 0.131072 1 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] notice: Restart of unbound 1.13.0. Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] notice: init module 0: validator Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] notice: init module 1: iterator Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: start of service (unbound 1.13.0). Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: service stopped (unbound 1.13.0). Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 0: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 0: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 1: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 1: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 2: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 2: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 3: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch, 0 rejected by ip ratelimiting Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: server stats for thread 3: requestlist max 0 avg 0 exceeded 0 jostled 0 Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] notice: Restart of unbound 1.13.0. Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] notice: init module 0: validator Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] notice: init module 1: iterator Mar 3 08:44:09 Porsche unbound[48351]: [48351:0] info: start of service (unbound 1.13.0). Mar 3 08:44:10 Porsche unbound[48351]: [48351:2] info: generate keytag query _ta-4f66. NULL IN Mar 4 07:21:03 Porsche unbound[50999]: [50999:0] notice: init module 0: validator Mar 4 07:21:03 Porsche unbound[50999]: [50999:0] notice: init module 1: iterator Mar 4 07:21:03 Porsche unbound[50999]: [50999:0] info: start of service (unbound 1.13.0). Mar 4 07:21:04 Porsche unbound[50999]: [50999:1] info: generate keytag query _ta-4f66. NULL IN Mar 4 07:21:04 Porsche unbound[50999]: [50999:0] info: service stopped (unbound 1.13.0).
Is disabling the Register DHCP leases in the DNS Resolver sufficient to solve this problem and I am running into the same issue? Or should I change the code as mentioned above?
I also see duplicate DHCP lease errors (I think this might be related to the restarts?)
Mar 2 22:59:55 Porsche dhcpleases[3459]: Sending HUP signal to dns daemon(11064) Mar 2 23:01:20 Porsche dhcpd[23031]: DHCPREQUEST for 172.16.108.76 from 44:07:0b:b7:a5:59 via igb1.10 Mar 2 23:01:20 Porsche dhcpd[23031]: DHCPACK on 172.16.108.76 to 44:07:0b:b7:a5:59 via igb1.10 Mar 2 23:04:39 Porsche dhcpd[23031]: DHCPREQUEST for 172.16.108.139 from e2:81:d8:e1:a6:32 (iPhoneJ) via igb1.10 Mar 2 23:04:39 Porsche dhcpd[23031]: DHCPACK on 172.16.108.139 to e2:81:d8:e1:a6:32 (iPhoneJ) via igb1.10 Mar 2 23:04:39 Porsche dhcpleases[3459]: Sending HUP signal to dns daemon(11064) Mar 2 23:05:11 Porsche dhcpd[23031]: uid lease 192.168.2.167 for client 00:04:4b:5b:d4:60 is duplicate on 192.168.2.0/24 Mar 2 23:05:11 Porsche dhcpd[23031]: DHCPREQUEST for 192.168.2.131 from 00:04:4b:5b:d4:60 via igb1 Mar 2 23:05:11 Porsche dhcpd[23031]: DHCPACK on 192.168.2.131 to 00:04:4b:5b:d4:60 via igb1 Mar 2 23:05:28 Porsche dhcpd[23031]: DHCPREQUEST for 10.10.10.54 from e0:63:da:ca:b5:65 via igb1.20 Mar 2 23:05:28 Porsche dhcpd[23031]: DHCPACK on 10.10.10.54 to e0:63:da:ca:b5:65 (WoonkamerAP) via igb1.20 Mar 2 23:05:28 Porsche dhcpleases[3459]: Sending HUP signal to dns daemon(11064) Mar 2 23:08:26 Porsche dhcpd[23031]: uid lease 172.16.108.125 for client 18:56:80:1a:27:a0 is duplicate on 172.16.108.0/24 Mar 2 23:08:26 Porsche dhcpd[23031]: DHCPREQUEST for 172.16.108.83 from 18:56:80:1a:27:a0 via igb1.10 Mar 2 23:08:26 Porsche dhcpd[23031]: DHCPACK on 172.16.108.83 to 18:56:80:1a:27:a0 via igb1.10 Mar 2 23:14:27 Porsche dhcpd[23031]: DHCPREQUEST for 172.16.108.71 from b0:95:75:22:af:a1 via igb1.10 Mar 2 23:14:27 Porsche dhcpd[23031]: DHCPACK on 172.16.108.71 to b0:95:75:22:af:a1 via igb1.10 Mar 2 23:18:48 Porsche dhcpd[23031]: uid lease 192.168.2.150 for client e0:63:da:5d:8d:27 is duplicate on 192.168.2.0/24 Mar 2 23:18:48 Porsche dhcpd[23031]: DHCPREQUEST for 192.168.2.10 from e0:63:da:5d:8d:27 via igb1 Mar 2 23:18:48 Porsche dhcpd[23031]: DHCPACK on 192.168.2.10 to e0:63:da:5d:8d:27 via igb1 Mar 2 23:22:27 Porsche dhcpd[23031]: uid lease 192.168.2.164 for client e0:63:da:ca:b4:e1 is duplicate on 192.168.2.0/24 Mar 2 23:22:27 Porsche dhcpd[23031]: DHCPREQUEST for 192.168.2.13 from e0:63:da:ca:b4:e1 via igb1 Mar 2 23:22:27 Porsche dhcpd[23031]: DHCPACK on 192.168.2.13 to e0:63:da:ca:b4:e1 via igb1 Mar 2 23:22:34 Porsche dhcpd[23031]: uid lease 192.168.2.218 for client e0:63:da:ca:c2:c5 is duplicate on 192.168.2.0/24 Mar 2 23:22:34 Porsche dhcpd[23031]: DHCPREQUEST for 192.168.2.12 from e0:63:da:ca:c2:c5 via igb1 Mar 2 23:22:34 Porsche dhcpd[23031]: DHCPACK on 192.168.2.12 to e0:63:da:ca:c2:c5 via igb1 Mar 2 23:22:34 Porsche dhcpleases[3459]: Sending HUP signal to dns daemon(11064) Mar 2 23:22:57 Porsche dhcpd[23031]: DHCPREQUEST for 10.10.10.16 from e0:63:da:ca:b4:e1 via igb1.20 Mar 2 23:22:57 Porsche dhcpd[23031]: DHCPACK on 10.10.10.16 to e0:63:da:ca:b4:e1 via igb1.20 Mar 2 23:22:58 Porsche dhcpd[23031]: DHCPREQUEST for 10.10.10.51 from e0:63:da:ca:c2:c5 via igb1.20 Mar 2 23:22:58 Porsche dhcpd[23031]: DHCPACK on 10.10.10.51 to e0:63:da:ca:c2:c5 (SlaapkamerAP) via igb1.20 Mar 2 23:22:58 Porsche dhcpleases[3459]: Sending HUP signal to dns daemon(11064) Mar 2 23:22:59 Porsche dhcpd[23031]: uid lease 192.168.2.231 for client 74:ac:b9:1a:18:79 is duplicate on 192.168.2.0/24 Mar 2 23:22:59 Porsche dhcpd[23031]: DHCPREQUEST for 192.168.2.14 from 74:ac:b9:1a:18:79 via igb1 Mar 2 23:22:59 Porsche dhcpd[23031]: DHCPACK on 192.168.2.14 to 74:ac:b9:1a:18:79 via igb1 Mar 2 23:23:34 Porsche dhcpd[23031]: uid lease 172.16.108.108 for client 02:0f:b5:78:8f:32 is duplicate on 172.16.108.0/24 Mar 2 23:23:34 Porsche dhcpd[23031]: DHCPREQUEST for 172.16.108.65 from 02:0f:b5:78:8f:32 via igb1.10 Mar 2 23:23:34 Porsche dhcpd[23031]: DHCPACK on 172.16.108.65 to 02:0f:b5:78:8f:32 via igb1.10 Mar 2 23:23:38 Porsche dhcpd[23031]: uid lease 172.16.108.121 for client 00:09:b0:e0:ed:47 is duplicate on 172.16.108.0/24 Mar 2 23:23:38 Porsche dhcpd[23031]: DHCPREQUEST for 172.16.108.81 from 00:09:b0:e0:ed:47 via igb1.10
-
What pfSense version ?
@audiaddict said in Frequent unbound restarts:
Mar 3 08:42:01 Porsche dhcpd[23031]: DHCPREQUEST for 172.16.108.148 from 44:bb:3b:01:3f:86 via igb1.10
Mar 3 08:42:01 Porsche dhcpd[23031]: DHCPACK on 172.16.108.148 to 44:bb:3b:01:3f:86 via igb1.10
Mar 3 08:42:01 Porsche dhcpleases[3459]: Sending HUP signal to dns daemon(11064)With 2.4.5-p1, when this one is checked :
then, as mentioned, the IP and host name are registered into the DNS.
To do that, the resolver, unbound, has be to restarted.Consider using static MAC DHCP leases - and make the lease time as big as possible.
Or disable those option.@audiaddict said in Frequent unbound restarts:
Mar 3 08:42:08 Porsche dhclient[53164]: bound to 192.168.100.10 -- renewal in 30 seconds.
This is on the other side : WAN : Your DHCP client - remember : it asks a IP from an upstream (ISP ? ) router really lasts 1 minute or 60 seconds ?
Why ?? -
Version 2.5.0-RELEASE (amd64)
built on Tue Feb 16 08:56:29 EST 2021
FreeBSD 12.2-STABLENo idea on the WAN refresh.. this is a Ziggo (vodafone) ISP modem that I have no control over really. It's set to bridge.
Can you confirm by disabling the registering of DNS entries under DNS resolver - this should not cause these DNSresolver restarts?
Also any idea's why I'm getting double DHCP duplicates? See last logs.
I'm using static DHCP entries with mac address under DHCP server.
-
@audiaddict said in Frequent unbound restarts:
this is a Ziggo (vodafone) ISP modem that I have no control over really. It's set to bridge.
Then you would be sending them some words like
Geachte support, Is het mogelijk om de lease van iet wat meer dan 60 seconden te krijgen ?
@audiaddict said in Frequent unbound restarts:
Can you confirm by disabling the registering of DNS entries under DNS resolver - this should not cause these DNSresolver restarts?
After answering the same question, some 1000+ forum messages, from the last 2 years or so.
Yes, I can confirm.
This was the issue with 2.4.5-p1.How 2.5.0 works these days : dono.
I can see it's still HUPped. Maybe its not restarting anymore, but just re reading the config files, and among them, the modified /etc/hosts file that contains (updated) DHCP client IP hostname information.Cn you imagine what happens if you had a client device that was asking for a new lease every 30 seconds ??
It would totally explode unbound ..... as ir would have to handle the HUP alll the time.Believe me :
Make static DHCP MAC leases for your devices that need a fixed IP - host name relation.
Un check the option.
Done.I have de activated that option several years ago.
unbound is rock solid.edit :
Mar 3 08:43:58 Porsche dhclient[10769]: Cannot open or create pidfile: No such file or directory
isn't good.
-
@gertjan But the issue is this is mis-implemented. No HUP needs to be sent here and if so all that needs to happen is use the command specified above to reload the local zone (the only one which could possibly be affected by DHCP leases). I can't think of a single other product anywhere that has this problem because every other vendor knows how to deal with DHCP leases adding DNS names.
-
@jasonarlouser said in Frequent unbound restarts:
No HUP needs to be sent here and if so ....
Please check the "vendors" instruction : the ones who make and maintain unbound.
The question is : when is the local /etc/hosts file re read in ?
Or, you might bask : is there another way to communicate a running unbound process the presence of a new local host + IP ? (answer : yes, there is ..... )Back, in the dark ages, the manual was : look up in the C source code why HUP was needed, and what it does when one is received, etc.
It's time I make this tour again, see how the more recent unbound version behave.
But I'm registering unknown device's DHCP leases any more in my DNS. All the devices I need to contact have chosen host names, and chosen IP's addresses.
Same thing for IPv6.
So, it became a non issue for me.Anyway, the unbound+DHCP leases thing is an ongoing discussion for a couple of years now.
In the past of pfSense :
dnsmasq was used before, but considered to light - and has no DNSSEC support.
So, unbound came up ... and was choosen.
"bind" might be used, but was often left out as to - far to - big. -
This post is deleted!