[FATAL] plugin/loop: Loop (127.0.0.1:55710 -> :53) detected for zone ".", see https://coredns.io/...

  • 搭建k8s过程中,coredns报错【[FATAL] plugin/loop: Loop (127.0.0.1:55710 -> :53) detected for zone ".", see https://coredns.io/plugins/loop#troubleshooting. Query: "HINFO 6229007223346367857.5322622110587761536."】

原因:是因为dns设置了包含127.0.x.x导致的

  • 解决
将此处改为【114.114.114.114】,文件位置vim /etc/resolv.conf
  • 上面是临时修改,重启完毕后配置消失
重启消失
  • 永久修改第一步【去掉127.0.x.x】
vim vim /etc/resolvconf/update.d/libc 按上图中修改
for N in $NMSRVRS
do
    if [[ $N != *"^127.0"* ]];then
        echo "nameserver $N" >> "$TMPFILE"
    fi
done
  • 永久修改第二步【增加要使用的DNS】
vim /etc/resolvconf/resolv.conf.d/tail 增加:nameserver 114.114.114.114(多个dns可以添加多行,nameserver 114.114.114.114换行nameserver 8.8.8.8)
  • 重启服务
/etc/init.d/resolvconf restart
  • 验证
图中已经生效

你可能感兴趣的:([FATAL] plugin/loop: Loop (127.0.0.1:55710 -> :53) detected for zone ".", see https://coredns.io/...)