歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

cents上執行wget命令報錯:unable to resolve host address

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

更多精彩內容:http://www.bianceng.cn/OS/Linux/

Copyright © Linux教程網 All Rights Reserved