---------------------------
问题
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
原文:https://www.cnblogs.com/oxspirt/p/15221953.html