nmcli dev show produced output below and the IP4.DNS entries from the router are shown (and used by other PCs connected to the router).
GENERAL.DEVICE: enp2s0
GENERAL.TYPE: ethernet
GENERAL.HWADDR: A8:A1:59:6C:E2:22
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/3
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 172.23.1.11/24
IP4.GATEWAY: 172.23.1.1
IP4.ROUTE[1]: dst = 172.23.1.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[2]: dst = 0.0.0.0/0, nh = 172.23.1.1, mt = 100
IP4.DNS[1]: 203.12.160.35
IP4.DNS[2]: 1.1.1.1
IP6.ADDRESS[1]: fe80::9153:b441:289f:705f/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 1024
In /etc/ I have the line in the file listing:
resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
and the file contains (apart from comments):
nameserver 127.0.0.53
options edns0 trust-ad
search .
also the file /run/systemd/resolve/resolv.conf that contains:
nameserver ::1
search .
but nothing relating to /etc/systemd or contained in the /etc/systemd directory.
Created resolved.conf and restarted it as above but without any success.
$ ping -c9 google.com
ping: google.com: Temporary failure in name resolution
although ping -c5 8.8.8.8 still works fine.
I did have ProtonVPN installed until very recently - removed it to try and cut out possibilities - but the actual uninstall made no difference. Ran command below and .... success!!
$ nmcli connection delete pvpn-ipv6leak-protection
Connection 'pvpn-ipv6leak-protection' (6d6c4e02-028b-44ee-a7dc-e934552f06d9) successfully deleted.
$ ping -c9 google.com
PING google.com (142.250.70.206) 56(84) bytes of data.
64 bytes from mel05s01-in-f14.1e100.net (142.250.70.206): icmp_seq=1 ttl=56 time=18.2 ms
64 bytes from mel05s01-in-f14.1e100.net (142.250.70.206): icmp_seq=2 ttl=56 time=18.7 ms
All seems to be working fine now, including updates (a few hundred).
Thanks for your help on this - it's something I couldn't have worked out!
A couple of follow-up questions:
- Should resolved.conf be removed now from /etc/systemd/?
- Is it a good move to be using ProtonVPN if it causes these issues?