wget报unable to resolve host address

Linux系统运行yum安装rpm包的时候提示wget unable to resolve host address
wget:无法解析主机地址。这就能看出是DNS解析的问题。

错误提示


wget: unable to resolve host address

解决办法:

1.登入root(VPS)。
2.进入/etc/resolv.conf。
3.修改内容为下
nameserver 8.8.8.8 #google域名服务器
nameserver 8.8.4.4 #google域名服务器

posted @ 2018-08-17 11:27  伽蓝殿前的云扬  阅读(2909)  评论(0编辑  收藏  举报