新安装的CentOS无法解析网址

编辑

vi /etc/resolv.conf ------添加如下内容

nameserver 114.114.114.114
nameserver 8.8.8.8

ssh连接出现

Ncat: No route to host.

查看防火墙是否关闭,我这边关闭后就OK了

 systemctl disable firewalld
 systemctl stop firewalld

Guess you like

Origin blog.csdn.net/weixin_44328568/article/details/119349573
Recommended