Total Pageviews

Sunday 23 September 2018

CentOS上执行wget报错:unable to resolve host address


wget命令报错,无法解析域名"www.keepalived.rog"

[linuxidc@RS1 download]$ wget http://www.keepalived.org/software/keepalived-1.2.12.tar.gz
Resolving www.keepalived.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address `www.keepalived.org'

解决办法:
nano /etc/resolv.conf
nameserver 127.0.0.1
改成OpenDNS的一组解析服务器即可:
nameserver 208.67.222.222
nameserver 208.67.220.220

No comments:

Post a Comment