I ran into an issue recently where I tracked back that the systemd resolver was trying to be a tad to helpful and causing me pain through DNS. So I set out to kill and keep it disabled across reboots. In some quick googling I found a good answer on askubuntu.com.
Regurgitating what the answer is for my reference later and for anyone to find. (Along with a reference link below)
- Disable systemd-resolvd service:
sudo systemctl disable systemd-resolved.service sudo systemctl disable systemd-resolved-update-resolvconf.service sudo service systemd-resolved stop
- If file exists, add to “[main]” section in /etc/NetworkManager/NetworkManager.conf
- Delete symlink and replace /etc/resolv.conf
- Restart network-manager
sudo service network-manager restart