On one of my laptops which is running macOS High Sierra, is failing to resolve hostnames. I have specified two DNS servers in my network settings. One is an internal DNS server, and the other is 8.8.8.8. When I try to resolve local hostnames that the internal DNS knows, it resolves properly. But when I try to resolve something like google.com it fails.
I see that it tries to use the internal DNS server first, and since it doesn't know the hostname, I thought it would try to use 8.8.8.8 to resolve the hostname, but it never tries the other DNS server.
When I try this from my other laptop, it works properly i see
$>nslookup google.com
;; Got SERVFAIL reply from <internal dns>, trying next server
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: google.com
Address: 172.217.5.110
But from the one where it doesn't I see
$>nslookup google.com
Server: <internal dns>
Address: <internal dns>#53
** server can’t find google.com: SERVFAIL
There is no attempt to try the 8.8.8.8 DNS server. Why is that happening? How can I get it to try the other DNS server if it fails with one.