I have trouble using Google DNS under my 2017 MacBook Pro running macOS Mojave.. I want to point in advance that:
I don't have access to the router settings.
I'm using kind of host network that my landlord provided to me. I would like to avoid to contact him.
I can ping the DNS server I want to use:
$ ping 18.104.22.168 PING 22.214.171.124 (126.96.36.199): 56 data bytes 64 bytes from 188.8.131.52: icmp_seq=0 ttl=120 time=11.034 ms
I can resolve names without Google DNS:
$ nslookup www.apple.com Server: 192.168.179.1 Address: 192.168.179.1#53 Non-authoritative answer: www.apple.com canonical name = www.apple.com.edgekey.net. www.apple.com.edgekey.net canonical name = www.apple.com.edgekey.net.globalredir.akadns.net. www.apple.com.edgekey.net.globalredir.akadns.net canonical name = e6858.dsce9.akamaiedge.net. Name: e6858.dsce9.akamaiedge.net Address: 184.108.40.206
I cannot resolve names with Google DNS:
$ nslookup www.apple.com 220.127.116.11 ;; connection timed out; no servers could be reached
Setting up the DNS addresses in a new location does not help.