DNS resolver stopped working after upgrade to 20.04
I just installed Ubuntu 20.04, and had to remove netplan (I have my reasons). I then had a name resolution problem to solve. Here's how I fixed it:
Edit /etc/systemd/resolved.conf
and change/add this line:
DNS=1.1.1.1
(I'm using CloudFlare's DNS server here.)
Then change the /etc/resolv.conf
symlink like this:
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
Last, reboot. I hope this helps!