I upgraded from Ubuntu 20.04 to 22.04.1 yesterday.
Now, whenever I toggle wifi back on (from temporarily being off), I have no internet access.
I checked:
ls -lah /etc/resolv.conf
lrwxrwxrwx 1 root root 28 Feb 7 14:24 /etc/resolv.conf -> /opt/valet-linux/resolv.conf
cat /etc/resolv.conf
search attlocal.net
nameserver 127.0.0.1
Then I makes changes:
sudo vim /opt/valet-linux/resolv.conf
cat /opt/valet-linux/resolv.conf
nameserver 8.8.8.8
And then the internet works again.
But if I toggle Wi-Fi off and then back on, that file gets reset again.
I've already tried:
and:
cat /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
eth0:
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
from https://linuxize.com/post/how-to-set-dns-nameservers-on-ubuntu-18-04/ and countless posts on AskUbuntu and StackOverflow.
I've also tried:
cat /etc/dhcp/dhclient.conf
...
# https://stackoverflow.com/a/48652642/470749
supersede domain-name-servers 8.8.8.8;
from https://stackoverflow.com/a/48652642/470749.
Nothing works. I'm losing my patience with Ubuntu.
What have I done to get myself in this mess? Thanks.