原文:https://www.ywcsb.vip/blog/122.html

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

 

 

---------------------------

问题

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

相关文章:

  • 2021-12-04
  • 2022-03-01
  • 2022-02-24
  • 2021-09-22
  • 2022-01-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
相关资源
相似解决方案