Tuesday, April 03, 2007

resov.conf 设置


[root@localhost ~]# wget http://www.sina.com
--13:27:33-- http://www.sina.com/
=> `index.html'
Resolving www.sina.com... failed: Temporary failure in name resolution.

vi /etc/resolv.conf
nameserver 202.96.209.133
localhost localdomain

[root@localhost ~]# wget http://www.sina.com
--13:29:40-- http://www.sina.com/
=> `index.html'
Resolving www.sina.com... 61.172.201.194
Connecting to www.sina.com|61.172.201.194|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.sina.com.cn/ [following]
--13:29:40-- http://www.sina.com.cn/
=> `index.html'
Resolving www.sina.com.cn... 61.172.201.194
Connecting to www.sina.com.cn|61.172.201.194|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

[ <=> ] 254,417 --.--K/s

13:29:40 (4.26 MB/s) - `index.html' saved [254417]

No comments :