Dnsmasq DHCP Lease hostnames going in and out

Started by Snuffy2, July 24, 2025, 01:54:44 AM

Previous topic - Next topic
I converted over from Kea to Dnsmasq for DHCP leases with 25.1.10. Since then, I've been having issues with hostnames intermittently stop working. I've tried 25.1.11, 25.1.12 and now 25.7.0 with the same issue. It seems that every few minutes the internal hostnames stop working. I won't be able to load a web page at that hostname or SSH into the device. Then about a minute later it comes back up. For example, I run Home Assistant and connecting to http://homeassistant.home:8123 works most of the time but on occasion with fail for about a minute then come back up.

Looking at the Unbound and Dnsmasq logs I don't see any warnings or errors, only Informational logs. Happy to post any if that might help.

The router and the devices have been restarted multiple times.

Not sure what other information to post or what other steps to try. Happy to try anything so please let me know.



Local DNS entry TTL = 1 second ???

I guess if a DHCP lease is renewed, there will be a short pause in DNS resolution. Just set that timeout higher and try if it fixes the problem.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, ZTE F6005

1100 down / 800 up, Bufferbloat A+

One of the obvious technical downsides of a true lease-to-DNS resolution is that DNS entries are not found when no lease is active.


Cheers,
Franco

I tried initially going to 5 seconds and didn't see any difference. I then bumped it to 60 seconds. It may be a little more stable but hostnames are still failing pretty routinely. On Kea previously, I didn't see this issue at all. I can go back to Kea but it is more that I really need for my setup and I like the idea of Dnsmasq better if possible.