Mouin
Mouin

Reputation: 1103

wget: unable to resolve host address

I'am getting an error with the following command:

> wget sources.buildroot.net
--2017-01-04 09:22:20--  http://sources.buildroot.net/
Resolving sources.buildroot.net (sources.buildroot.net)... failed: Name or service not known.
wget: unable to resolve host address ‘sources.buildroot.net’

What i have done

Could you please help me resolv the problem.

Upvotes: 1

Views: 24427

Answers (1)

selbie
selbie

Reputation: 104559

Your environment variables need to be lower case. Use http_proxy and https_proxy instead of HTTP_PROXY.

man wget has all the details.

Wget supports proxies for both HTTP and FTP retrievals. The standard way to specify proxy location, which Wget recognizes, is using the following environment variables:

http_proxy

https_proxy

If set, the http_proxy and https_proxy variables should contain the URLs of the proxies for HTTP and HTTPS connections respectively.

Upvotes: 1

Related Questions