Fixing DNS issues in Kubuntu 22.04
DNS. It's always the effing DNS.
I had Kubuntu 21.10 installed with snaps disabled. Decided to run an update to Kubuntu 22.04. I'm on "normal" track, so this is for non-LTS version.
The update went fine but DNS refused to work after reboot.
After scouring through Stack Overflow I found my answer to fix it.
sudoedit /etc/resolvconf/resolv.conf.d/head with following:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # 127.0.0.53 is the systemd-resolved stub resolver. # run "systemd-resolve --status" to see details about the actual nameservers. nameserver 18.104.22.168 #could probably be 22.214.171.124 if you prefer
sudoedit /etc/resolvconf/resolv.conf.d/base with:
Then just restart your machine and there you go.
sudoedit doesn't work for you, just use
sudo nano or whatever works for you.
I get why people get frustrated with Systemd at times...
Anyway just wanted to share if someone else has the same problem.