How to disable systemd-resolved in Ubuntu

systemd-resolved can cause issues with Kubernetes (not to mention the time spent troubleshooting various issues).

Fix

sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved
sudo rm /etc/resolv.conf
echo 'search example.com' > /etc/resolv.conf
echo 'nameserver 1.1.1.1' >> /etc/resolv.conf
echo 'nameserver 1.0.0.1' >> /etc/resolv.conf

References

comments powered by Disqus