4
I am behind a very capricious proxy (squid) and it seems only http requests made with a particular user-agent are allowed.
When fetching google.com
from Google Chrome, I can see a HTTP GET
on WireSharc. However, wget
tries to resolve the DNS first through the default DNS servers which never answer.
How can I make wget
or even git
use the proxy instead of a direct DNS query?
If you're seeing that DNS requests are never answered, why do you think it's the fault of the proxy? Please [edit] your question to clarify. – roaima – 2016-03-11T11:33:32.180
1@roaima I never said it is the proxy's fault. I said wget is not doing the name resolution through the proxy. – nowox – 2016-03-11T11:48:51.533
Please could you clarify the relevance of "it seems only http requests made with a particular user-agent are allowed" to the DNS lookup issue you're describing. I don't see the connection. Thanks. – roaima – 2016-03-11T13:45:18.790
if wget is still doing a DNS lookup for the target site (not the proxy) then it's not set to use a proxy. You could resolve the lookup problem with a hosts file entry, but that will just push the problem to the next stage, if it doesn't make a proper proxy request to the proxy, it will be rejected then. – Adrien – 2016-07-22T23:43:54.730