Thanks for sharing that. My apologies for my last message being unclear. I was replying on my phone while helping my sick wife.
/etc/resolv.conf
# Generated by NetworkManager
nameserver 10.140.2.5
I can see that your DNS is configured for 10.140.2.5, but I’m not sure what this is it doesn’t really look related to the network you’re currently on. Are you able to edit this? Here is some documentation: https://man.archlinux.org/man/resolvconf.8.en and https://wiki.archlinux.org/title/Resolv.conf
I would recommend editing this in your network manager, not sure which DE you use, but usually you just edit by clicking/right-clicking on the network icon in your system tray. If that doesn’t work (as I can see you tried this before) try using nmcli.
nmcli connection show # Find your connection name
nmcli connection modify "<your-connection-name>" ipv4.dns "8.8.8.8 8.8.4.4"
nmcli connection modify "<your-connection-name>" ipv4.ignore-auto-dns yes
nmcli connection up "<your-connection-name>"
Doing this would likely break any intranet or internal hosts you try to resolve, so you may need to adjust to suit your needs.
By “seeing the output of a route” I meant using traceroute to see the path you take. I don’t think traceroute is installed on EOS by default so you may need to do the following.
pacman -S traceroute #install the traceroute tool
traceroute 8.8.8.8 #shows the route the packet takes to google's public DNS
traceroute google.com #shows the route taken to google by DNS
The beauty of using traceroute is we can see at what point the connection fails.
To try and ping the gateway you might know what this is or you can try the following
ip r #should show the routes
Then you can ping the gateway as an example:
[user@computername ~]$ ip r
default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.29 metric 600
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.29 metric 600
[user@computername ~]$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=2.66 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=4.59 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=2.40 ms
^C
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2005ms
rtt min/avg/max/mdev = 2.403/3.217/4.593/0.978 ms
If you’re unable to ping your gateway, your connection is broken on the LAN side, if you can ping your gateway but not 8.8.8.8 your connection is broken on the WAN side. If you can ping 8.8.8.8 but not google.com your DNS is borked.
Sorry for the super long response. I’ve been fixing broken networks over a decade now.