Fixing DNS issues in Kubuntu 22.04

on 2022-05-01

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.

First edit 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 8.8.4.4 #could probably be 1.1.1.1 if you prefer

Then edit sudoedit /etc/resolvconf/resolv.conf.d/base with:

nameserver 8.8.8.8

Then just restart your machine and there you go.

Also if 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.