HI.
This is a follow up to my original Squid server thread https://forums.opensuse.org/showthread.php/564820-Squid-not-working-as-expected?p=3097960#post3097960 where I was having issues pinging www.example.com unsuccessfully but www.google.com and other sites ok. This may be a bit long and decided to keep the threads separate as it was more a DNS issue but I found the process interesting.
For this new round of tests my main PC is NOT using proxy at all. The original NetworkManager settings on my PC had a ip4.method of “auto”. This directed the DNS lookups to the ISP provided modem/router at 10.1.1.1.
chris@asus-roc:~> cat /etc/resolv.conf
### /etc/resolv.conf is a symlink to /var/run/netconfig/resolv.conf
### autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
# NETCONFIG_DNS_STATIC_SEARCHLIST
# NETCONFIG_DNS_STATIC_SERVERS
# NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
# NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
### Call "netconfig update -f" to force adjusting of /etc/resolv.conf.
search lan asus-roc.lan
nameserver 10.1.1.1
chris@asus-roc:~>
The modem/router’s DNS settings had been delivered set to my ISP’s ‘choice’ (203.0.178.191/203.215.29.191) but I had reset them to Cloudfare’s DNS 1.1.1.2/1.0.0.2.
In this initial state if I ping www.example.com it would fail -
chris@asus-roc:~> ping www.example.com
ping: www.example.com: Name or service not known
chris@asus-roc:~>
and tshark show failed responses from 10.1.1.1 -
17 21.154019127 10.1.1.20 asus-roc.lan 46230 10.1.1.1 dsldevice.lan 53 DNS 75 Standard query 0x9a78 A www.example.com
18 21.154037973 10.1.1.20 asus-roc.lan 46230 10.1.1.1 dsldevice.lan 53 DNS 75 Standard query 0x2164 AAAA www.example.com
19 21.155068474 10.1.1.1 dsldevice.lan 53 10.1.1.20 asus-roc.lan 46230 DNS 75 Standard query response 0x9a78 No such name A www.example.com
20 21.155440387 10.1.1.1 dsldevice.lan 53 10.1.1.20 asus-roc.lan 46230 DNS 75 Standard query response 0x2164 No such name AAAA www.example.com
21 21.155638649 10.1.1.20 asus-roc.lan 33175 10.1.1.1 dsldevice.lan 53 DNS 79 Standard query 0xdb86 A www.example.com.lan
22 21.155654569 10.1.1.20 asus-roc.lan 33175 10.1.1.1 dsldevice.lan 53 DNS 79 Standard query 0x388b AAAA www.example.com.lan
23 21.156618194 10.1.1.1 dsldevice.lan 53 10.1.1.20 asus-roc.lan 33175 DNS 79 Standard query response 0xdb86 No such name A www.example.com.lan
24 21.157115007 10.1.1.1 dsldevice.lan 53 10.1.1.20 asus-roc.lan 33175 DNS 79 Standard query response 0x388b No such name AAAA www.example.com.lan
If I pinged www.google.com it succeeds -
chris@asus-roc:~> ping www.google.com
PING www.google.com (142.250.67.4) 56(84) bytes of data.
64 bytes from syd15s16-in-f4.1e100.net (142.250.67.4): icmp_seq=1 ttl=117 time=57.7 ms
64 bytes from syd15s16-in-f4.1e100.net (142.250.67.4): icmp_seq=2 ttl=117 time=57.6 ms
64 bytes from syd15s16-in-f4.1e100.net (142.250.67.4): icmp_seq=3 ttl=117 time=57.6 ms
64 bytes from syd15s16-in-f4.1e100.net (142.250.67.4): icmp_seq=4 ttl=117 time=58.0 ms
^C
--- www.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 57.598/57.712/57.985/0.158 ms
chris@asus-roc:~>
And tshark shows a successful response -
9 2.647240300 10.1.1.20 asus-roc.lan 48226 10.1.1.1 dsldevice.lan 53 DNS 74 Standard query 0xffd9 A www.google.com
10 2.647258100 10.1.1.20 asus-roc.lan 48226 10.1.1.1 dsldevice.lan 53 DNS 74 Standard query 0x4cdd AAAA www.google.com
11 2.656386105 10.1.1.1 dsldevice.lan 53 10.1.1.20 asus-roc.lan 48226 DNS 90 Standard query response 0xffd9 A www.google.com A 142.250.67.4
12 2.657329836 10.1.1.1 dsldevice.lan 53 10.1.1.20 asus-roc.lan 48226 DNS 102 Standard query response 0x4cdd AAAA www.google.com AAAA 2404:6800:4006:80f::2004
Now using Firefox without DNSoverHTTPS (DoH) (thereby using the 10.1.1.1 DNS) accessing www.example.com would fail.
19 3.231894174 10.1.1.20 asus-roc.lan 42903 10.1.1.1 dsldevice.lan 53 DNS 75 Standard query 0xb5ae A www.example.com
20 3.231900164 10.1.1.20 asus-roc.lan 42903 10.1.1.1 dsldevice.lan 53 DNS 75 Standard query 0x1ea0 AAAA www.example.com
21 3.232897819 10.1.1.1 dsldevice.lan 53 10.1.1.20 asus-roc.lan 42903 DNS 75 Standard query response 0xb5ae No such name A www.example.com
22 3.233322104 10.1.1.1 dsldevice.lan 53 10.1.1.20 asus-roc.lan 42903 DNS 75 Standard query response 0x1ea0 No such name AAAA www.example.com
But if I use Firefox’s DoH it connects but using Cloudfare’s DNS’s bypassing the 10.1.1.1 DNS.
23 1.999847695 10.1.1.20 asus-roc.lan 55468 10.1.1.1 dsldevice.lan 53 DNS 84 Standard query 0x2955 A detectportal.firefox.com
24 1.999863565 10.1.1.20 asus-roc.lan 55468 10.1.1.1 dsldevice.lan 53 DNS 84 Standard query 0x535f AAAA detectportal.firefox.com
25 2.001105037 10.1.1.1 dsldevice.lan 53 10.1.1.20 asus-roc.lan 55468 DNS 198 Standard query response 0x2955 A detectportal.firefox.com CNAME detectportal.prod.mozaws.net CNAME prod.detectportal.prod.cloudops.mozgcp.net A 34.107.221.82
26 2.001526718 10.1.1.1 dsldevice.lan 53 10.1.1.20 asus-roc.lan 55468 DNS 210 Standard query response 0x535f AAAA detectportal.firefox.com CNAME detectportal.prod.mozaws.net CNAME prod.detectportal.prod.cloudops.mozgcp.net AAAA 2600:1901:0:38d7::
This indicates to me that the 10.1.1.1 router DNS is “faulty” or still using the original ISP DNS addresses - 203.0.178.191/203.215.29.191 which may have their own issues - even though the router still shows 1.1.1.2/1.0.0.2.
After a bit of research I edited the current NetworkManager’s settings and set the ip4.method to “auto (addresses only)” and provided additional DNS servers 1.1.1.2/1.0.0.2.
This shows me that my system wide DNS servers are now -
chris@asus-roc:~> cat /etc/resolv.conf
### /etc/resolv.conf is a symlink to /var/run/netconfig/resolv.conf
### autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
# NETCONFIG_DNS_STATIC_SEARCHLIST
# NETCONFIG_DNS_STATIC_SERVERS
# NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
# NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
### Call "netconfig update -f" to force adjusting of /etc/resolv.conf.
search asus-roc.lan
nameserver 1.1.1.2
nameserver 1.0.0.2
chris@asus-roc:~>
and that ping www.example.org is ok -
chris@asus-roc:~> ping www.example.com
PING www.example.com (93.184.216.34) 56(84) bytes of data.
64 bytes from 93.184.216.34 (93.184.216.34): icmp_seq=1 ttl=58 time=224 ms
64 bytes from 93.184.216.34 (93.184.216.34): icmp_seq=2 ttl=58 time=224 ms
64 bytes from 93.184.216.34 (93.184.216.34): icmp_seq=3 ttl=58 time=223 ms
64 bytes from 93.184.216.34 (93.184.216.34): icmp_seq=4 ttl=58 time=224 ms
^C
--- www.example.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 223.269/223.564/223.832/0.199 ms
chris@asus-roc:~>
tshark -
16 3.218681095 10.1.1.20 10.1.1.20 47440 1.1.1.2 1.1.1.2 53 DNS 75 Standard query 0xf17b A www.example.com
17 3.218697129 10.1.1.20 10.1.1.20 47440 1.1.1.2 1.1.1.2 53 DNS 75 Standard query 0x2e77 AAAA www.example.com
18 3.228142259 1.1.1.2 1.1.1.2 53 10.1.1.20 10.1.1.20 47440 DNS 91 Standard query response 0xf17b A www.example.com A 93.184.216.34
21 3.430762980 1.1.1.2 1.1.1.2 53 10.1.1.20 10.1.1.20 47440 DNS 103 Standard query response 0x2e77 AAAA www.example.com AAAA 2606:2800:220:1:248:1893:25c8:1946
So there you have it. Is it a router issue with a hardwired DNS addresses regardless of user settings or their addresses themselves?
Are ALL DNS servers equal?