wget: unable to resolve host address `http'

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 Put nameserver to the first line of /etc/resolv.conf.

I figured out what went wrong. In the proxy configuration of my box, an extra http:// got prefixed to "proxy server with http".



and that has created problems. Corrected that, and it works perfectly.

Thanks @WhiteCoffee and @ChrisBint for your suggestions!

If using Vagrant try reloading your box. This solved my issue.

remove the http or https from wget https:github.com/facebook/facebook-php-sdk/archive/master.zip . this worked fine for me.

Need Your Help

How to retrieve parent node using XQuery?

xml xpath parent-child xquery

I am using XML and XQuerie. I usually use an XPath expression relative to a parent node to retrieve its child node. But, I am not sure how to do the opposite meaning if I have a child node, how do I

How to Structure Bonuses for Software Developers?

productivity management performance

I am a software developer, and have been asked to define a bonus structure for myself by recommending the metrics that will determine my bonus. I think, once I have defined this bonus structure, th...