测试有用 ubuntu server 22.04 LTS
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 188.8.131.52' >> /etc/resolv.conf echo 'nameserver 184.108.40.206' >> /etc/resolv.conf
Comments are closed, but trackbacks and pingbacks are open.