[转]解决Ubuntu DNS覆盖写入127.0.0.53

时间:2021-09-03 22:49:39   收藏:0   阅读:31

原文: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

原文:https://www.cnblogs.com/oxspirt/p/15221953.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!