Clients keep DHCP leases but lose local mDNS/hostname resolution until home router reboot
Environment
Home network: OpenWrt 22.03 router (ath79), LAN 192.168.1.0/24, DNSMasq for DHCP/mDNS support, multiple clients (macOS, Linux, Android). DHCP leases renew successfully, but Avahi/Bonjour/mDNS and local hostname resolution fail intermittently until router is rebooted.
Symptoms
Devices retain IP addresses (ip addr shows same), can ping gateway by IP, and reach internet, but resolving local hostnames (device.local) times out. Avahi on clients shows limited discovery; nmap shows UDP/5353 replies inconsistent. Restarting router restores name resolution for hours before recurrence.
Observations
Router logs show occasional 'dnsmasq: ignoring query from <LAN IP>: REFUSED' entries and high load on dnsmasq when the issue starts. mDNS multicast (224.0.0.251) traffic seen on LAN but with packet loss spikes. Disabling IGMP snooping on switch reduces but does not eliminate the issue.
Already attempted
Restarted Avahi on clients, flushed DNS cache, rebooted router (temporary fix), updated OpenWrt packages, disabled firewall forwarding between LAN clients, enabled multicast flooding, captured tcpdump on router and a client during failure window.
Question
What configurations or router bugs cause mDNS/name resolution to stop working on a LAN while DHCP remains valid, and how can I make local hostname resolution robust without frequent router reboots?
Verified community troubleshooting
Short fix: check and raise dnsmasq limits and stop IGMP snooping while you troubleshoot. Edit /etc/config/dnsmasq on the router to increase cache-size (e.g., 1000) and disable query rate limiting, then restart dnsmasq. Temporarily disable IGMP snooping on any managed switch and the router so mDNS multicast reaches all nodes. Verify by running 'avahi-browse -a' on a client; if names return, gradually re-enable features with tuned settings. If issues persist, collect tcpdump on UDP/5353 from both client and router and update OpenWrt/dnsmasq — rebooting is only a bandage.
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Networking31% match
Intermittent DHCP renewals fail after adding ip helper on routed VLAN — clients keep old IP and lose gateway
Open1 answer - Networking27% match
Clients time out to IPv4-only sites after enabling DNS64/NAT64 on OpenWrt router (intermittent synthesis failures)
Open0 answers - Networking26% match
Clients receive IPv6 addresses but no default route after enabling DHCPv6-only mode on OpenWrt router
Open0 answers - Networking25% match
Intermittent DNS failures for local hostnames on 2.4 GHz Wi‑Fi only
Open0 answers - Networking24% match
IPv6-only home network times out on IPv4-only websites after switching to DHCPv6-only LAN
Open0 answers