High Sierra DNS fails intermittently for LAN-local hosts
macOS doesn't treat its DNS server list as having any sort of priority at all, it just scatters queries across all of them in a semirandom fashion. Set it to only use the internal DNS server, and you should get much more reliable lookups.