原文:https://www.ywcsb.vip/blog/122.html
---------------------------
問題
Ubuntu20.04搭建k8s coredns組件報錯
因為/etc/resolve.conf中存在 nameserver 127.0.0.53回環地址造成循環引用
因為/etc/resolve.conf中存在 nameserver 127.0.0.53回環地址造成循環引用
原因
ubuntu17.0之后特有,systemd-resolvd服務會一直覆蓋
解決辦法
sudo apt install unbound
sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
sudo rm -rf /etc/resolv.conf
# 刪除后重新創建resolv.conf
sudo touch /etc/resolv.conf