Dig Command Not Working MacOS Mojave
I upgraded from MacOS Sierra to Mojave 10.14.3. Since the upgrade the dig command is no longer working. It returns "no servers could be reached". Here is an example query:
$ dig @ns1.google.com www.google.com
; <<>> DiG 9.10.6 <<>> @ns1.google.com www.google.com
; (2 servers found)
;; global options: +cmd
;; connection timed out; no servers could be reached
The commands "host" and "nslookup" work. I also discovered that if I add the dig option "+tcp" it works, for example "dig @ns1.google.com www.google.com".
The dig command was working fine in MacOS Sierra. Any ideas on why dig stopped working in Mojave?
Thanks for the help.
MacBook Pro 15", 10.14