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

原文地址:https://blog.csdn.net/angel22xu/article/details/25070373

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

[vagrant@RS1 download]$ wget http://www.keepalived.org/software/keepalived-1.2.12.tar.gz

--2014-05-05 11:06:14--  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'

 

服务器环境:

[vagrant@RS1 download]$ uname -a

Linux RS1 2.6.18-238.el5 #1 SMP Thu Jan 13 15:51:15 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

[vagrant@RS1 download]$ cat /etc/redhat-release 

CentOS release 5.6 (Final)

 

 

打开/etc/resolv.conf,比如内容如下:

nameserver 192.168.10.1

 

 

改成OpenDNS的一组解析服务器即可:

nameserver 208.67.222.222

nameserver 208.67.220.220

 

示例:

cd  /etc

vim  resolv.conf

 

输入i,进行修改,

修改完毕,按ESC,输入“:wq”,回车即可。

你也有好的想法?点击右下角的“灯泡”,开始你的创作。与我们一起,让生活更愉悦,让工作更高效,让世界更美好!
0 条回复 A 作者 M 管理员
    所有的伟大,都源于一个勇敢的开始!
欢迎您,新朋友,感谢参与互动!欢迎您 {{author}},您在本站有{{commentsCount}}条评论