在某个VPS上执行wget操作结果超时,信息如下:
•wget http://down.45it.com/
•--2012-09-15 09:13:14--
•Resolving blog.is36.com... failed: Temporary failure in name resolution.
•wget: unable to resolve host address `aa.com'
返回的错误很明显,就是无法解析,出现这个问题与nameserver有关,修改/etc/resolv.conf文件即可。
查看/etc/resolv.conf文件内容如下:
•nameserver 205.185.112.68
•nameserver 205.185.112.69
改成OpenDNS的一组解析服务器即可:
•nameserver 208.67.222.222
•nameserver 208.67.220.220