changing & fixing DNS in Pop_OS
The goal is to make resolve DNS configuration issues in Pop_os
Pop is using systemd-resolved for DNS, so the problem is the system settings don't actually work - even worse they don't even tell you with some kind of error.
To make the built in networkmanager work as expected and able to configure DNS as it should be we need:
sudo systemctl stop systemd-resolved # stop
sudo systemctl disable systemd-resolved # disable
cat /etc/NetworkManager/NetworkManager.conf | sed "3 i\dns=default" | sudo tee /etc/NetworkManager/NetworkManager.conf # thell network manager to manage DNS
sudo rm /etc/resolv.conf # clear the junk resolv.conf
sudo systemctl restart NetworkManager # restart networkmanager