Temporary failure in name resolution 问题解决(无法ping外网)

dns无法解析导致,解决办法如下

1.用ipconfig  /all 在windows(可访问外网的环境)下查看一下dns地址

2.在/etc/resolv.conf增加可用dns服务器

 

如果还是不能连接外网,可能跟防火墙相关。可直接关闭防火墙,或者打开对应端口

systemctl disable firewalld

 

posted @ 2023-02-06 15:13  hanframe  阅读(3533)  评论(0编辑  收藏  举报