Unable to resolve host using curl/wget while page loads in browser

4

1

The problem I am facing is that while I open a link in my browser it loads quickly but whenever I try using the link in terminal with for e.g. curl -0 www.google.com or wget www.google.com , both of them says

     unable to resolve host address `www.google.com'

I have already crossed checked the url if I have done any sort of mistake while writing the url but everything is correct.

Can any one tell what the problem is?

Debopam Mitra

Posted 2012-12-12T12:05:37.263

Reputation: 143

1This is a guess: Do you have a proxy enabled? Please research how to obtain this information for your browser. – ayckoster – 2012-12-12T13:03:51.467

Yes I do. My network goes through proxy. Tell me how can I bypass it for curl/wget?? – Debopam Mitra – 2012-12-12T18:08:22.873

Answers

3

Set the http proxy with command line.

export http_proxy="http://theipofproxy:port"

mridul4c

Posted 2012-12-12T12:05:37.263

Reputation: 145