I’ve had somewhat (?maybe?) similar issues for some time now.
I’ve only ever noticed this on one single client (my work laptop) - but its possible I’ve only noticed it here because I’m on that machine 8-10 hours a day.
Intermittently, I seem to lose DNS on this device.
It only seems to happen maybe 1 or 2 days a month - other days seems to be just fine.
On days that the issue occurs, it seems to happen repeatedly. – and the next day is fine again.
I suspect that is is somehow around DHCP lease ( my length of lease is 12 hours)
And that the “it works fine the next day” is a result of some process that finally occurs after another 12 hours…
Anyway. Just happened again, and I noticed something in the logs.
- a Lease renewal by another device had just occured before the device i was using started having issues.
- That other device (and yet a 3rd device renewing lease) gettting a renewal did not result in a log entry for:
turris dhcp_host_domain_ng.py: Refresh kresd leases
I’m likely grasping at straws, but maybe this would give some insight to someone more technical than myself.
Jan 10 11:22:33 turris dnsmasq-dhcp[5713]: DHCPREQUEST(br-guest-turris) 10.111.222.208 <MAC1>
Jan 10 11:22:33 turris dnsmasq-dhcp[5713]: DHCPACK(br-guest-turris) 10.111.222.208 <MAC1> Roku3
** a device renews lease. Note the lack of “refresh kresd leases” call
** I’ve suddenly lost routing on my work laptop. I manually recycle my client (disconnect, connect)
** I believe that only DNS functionality / dhcp. — but I need to confirm.
Jan 10 17:26:53 turris hostapd: wlan1: AP-STA-DISCONNECTED <MAC2>
Jan 10 17:26:53 turris hostapd: wlan1: STA <MAC2> IEEE 802.11: disassociated
Jan 10 17:26:54 turris hostapd: wlan1: STA <MAC2> IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Jan 10 17:26:57 turris hostapd: wlan1: STA <MAC2> IEEE 802.11: associated (aid 2)
Jan 10 17:26:57 turris hostapd: wlan1: AP-STA-CONNECTED <MAC2>
Jan 10 17:26:57 turris hostapd: wlan1: STA <MAC2> RADIUS: starting accounting session 7BA1B9C4C5D694B6
Jan 10 17:26:57 turris hostapd: wlan1: STA <MAC2> WPA: pairwise key handshake completed (RSN)
Jan 10 11:26:57 turris dnsmasq-dhcp[5713]: DHCPREQUEST(br-lan) 192.168.6.137 <MAC2>
Jan 10 11:26:57 turris dnsmasq-dhcp[5713]: DHCPACK(br-lan) 192.168.6.137 <MAC2> PM-11709
Jan 10 17:26:57 turris dhcp_host_domain_ng.py: DHCP update hostname [PM-11709,192.168.6.137]
Jan 10 17:26:57 turris dhcp_host_domain_ng.py: Refresh kresd leases
^^. Note the call to “refresh Kresd leases. After I manually recycle the connecion
**. A few minutes later, yet another device on my network (printer this time) renews its lease
Jan 10 11:33:10 turris dnsmasq-dhcp[5713]: DHCPREQUEST(br-lan) 192.168.6.165 <MAC3>
Jan 10 11:33:10 turris dnsmasq-dhcp[5713]: DHCPACK(br-lan) 192.168.6.165 <MAC3> HP81DD5F
Jan 10 17:35:01 turris crond[11532]: (root) CMD (/usr/bin/notifier)
Jan 10 17:35:01 turris crond[11531]: (root) CMDOUT (There is no message to send.)
Jan 10 17:35:01 turris crond[11531]: (root) CMDEND (/usr/bin/notifier)
^^ again, in this case, “Refresh Kresd leases”. Call does not occur
** I’ve lost routing on my work laptop again. I manually recycle my client (disconnect, connect)
Jan 10 17:35:07 turris hostapd: wlan1: AP-STA-DISCONNECTED <MAC2>
Jan 10 17:35:07 turris hostapd: wlan1: STA <MAC2> IEEE 802.11: disassociated
Jan 10 17:35:08 turris hostapd: wlan1: STA <MAC2> IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Jan 10 17:35:10 turris hostapd: wlan1: STA <MAC2> IEEE 802.11: authenticated
Jan 10 17:35:10 turris hostapd: wlan1: STA <MAC2>IEEE 802.11: associated (aid 2)
Jan 10 17:35:10 turris hostapd: wlan1: AP-STA-CONNECTED <MAC2>
Jan 10 17:35:10 turris hostapd: wlan1: STA <MAC2> RADIUS: starting accounting session F1395D653B9B982C
Jan 10 17:35:10 turris hostapd: wlan1: STA <MAC2> WPA: pairwise key handshake completed (RSN)
Jan 10 11:35:10 turris dnsmasq-dhcp[5713]: DHCPREQUEST(br-lan) 192.168.6.137 <MAC2>
Jan 10 11:35:10 turris dnsmasq-dhcp[5713]: DHCPACK(br-lan) 192.168.6.137 <MAC2> PM-11709
Jan 10 17:35:11 turris dhcp_host_domain_ng.py: DHCP update hostname [PM-11709,192.168.6.137]
Jan 10 17:35:11 turris dhcp_host_domain_ng.py: Refresh kresd leases
^^ again, a manual recycle of the lease results in a call to “refresh kresd leases” after DHCPACK