wget:无法解析主机地址`http' [英] wget: unable to resolve host address `http'

查看:3927
本文介绍了wget:无法解析主机地址`http'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我执行 wget



<$ p时,我在我的Ubuntu 12.04 64位机器上遇到这个奇怪的事情$ p> $ wget google.com

--2014-07-18 14:44:32-- http://google.com/

解析http(http)...失败:名称或服务未知。

wget:无法解析主机地址`http'

我遇到过这个问题早些时候我得到任何网页(而不是http),这要求我将我的名字服务器添加到 /etc/resolv.conf



但是,这似乎不是问题,而是将 http 识别为不同的东西。任何建议?

解决方案

DNS服务器似乎无序。您可以使用其他DNS服务器,例如8.8.8.8。将 nameserver 8.8.8.8 放入 /etc/resolv.conf 第一行


I am getting this strange thing on my Ubuntu 12.04 64-bit machine when I do a wget

$ wget google.com

--2014-07-18 14:44:32--  http://google.com/

Resolving http (http)... failed: Name or service not known.

wget: unable to resolve host address `http'

I have encountered this problem earlier when I got it for any web pages (and not http), which required me to add my nameserver to /etc/resolv.conf.

However, here that doesn't seem to be the problem, instead it is recognizing http as something different. Any advise?

解决方案

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.

这篇关于wget:无法解析主机地址`http'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆