wget: unable to resolve host address “http”

[root@one ~]# wget www.baidu.com
--2017-09-24 10:20:23--  http://www.baidu.com/
Resolving http... failed: Temporary failure in name resolution.
wget: unable to resolve host address “http”

  

解决方案:

[root@one ~]# vim /etc/resolv.conf 
The DNS server seems out of order. You can use another DNS server such as 8.8.8.8. Put nameserver 8.8.8.8 to the first line of /etc/resolv.conf.

  

 

posted @ 2017-09-22 10:31  RoyFans  阅读(2307)  评论(0编辑  收藏  举报