4

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?

2
  • 1
    This is a guess: Do you have a proxy enabled? Please research how to obtain this information for your browser.
    – ayckoster
    Dec 12, 2012 at 13:03
  • Yes I do. My network goes through proxy. Tell me how can I bypass it for curl/wget?? Dec 12, 2012 at 18:08

1 Answer 1

3

Set the http proxy with command line.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.