systemd-resolved can cause issues with Kubernetes (not to mention the time spent troubleshooting various issues).
- Disable the systemd-resolved service
sudo systemctl disable systemd-resolved sudo systemctl stop systemd-resolved
- Remove the remove the existing
/etc/resolv.conffile, which is currently a symbolic link to
sudo rm /etc/resolv.conf
- Create a new static
echo 'search example.com' > /etc/resolv.conf echo 'nameserver 220.127.116.11' >> /etc/resolv.conf echo 'nameserver 18.104.22.168' >> /etc/resolv.conf