DNS lookup fails occasionally on a Mac mini and a MacBook Air
I have a home network with a number of computers connected, including a MacMini 2 and a new MacBook Air. There is a Unify USG router/firewall and this runs as the DNS server for the network. The USG is configured to resolve names for internal devices and forward queries for external computers to OpenDNS. The LAN's DHCP settings specify that the primary DNS server is the USG and OpenDNS is the secondary in case internal resolution fails.
Both Macs experience the following problem, but no other machines - implying this is a MacOS-specific problem and not a network problem. This is important as the symptoms could otherwise imply a failure of the USG's DNS server.
Occasionally, no apparent frequency, DNS name resolution fails for internal hosts. External hosts resolve OK.
Opening a terminal reveals that
dig host.local
works. It comes back with the correct IP address. However
ping host.local
fails because the name doesn't resolve. Ping'ing the IP address works of course.
Rebooting resolves the problem, as does switching to a different network location: even if it has the same settings.
Any thoughts on what might be causing this?
Mac mini, macOS 10.13