I'm using curl with a Socks proxy. The proxy is configured via
I observed that curl resolves the hostname locally, not via the proxy. When requesting a URL with an IP, the request works fine, with hostname that can't be resolved locally, curl fails.
In the man page I found this explicit CLI option:
--socks5-hostname <host[:port]> Use the specified SOCKS5 proxy (and let the proxy resolve the host name).
Interestingly the text within the parens emphassis, that this option will also resolve the hostname via the proxy. But that's all on hostname resolving, in the rest of the man page, there is no word mentioning how name resolving works with proxies.
curl 7.27.0 (x86_64-redhat-linux-gnu) libcurl/7.27.0 NSS/3.15.1 zlib/1.2.7 libidn/1.26 libssh2/1.4.3
Is there an option or alternative environment variable that will make curl resolve hostnames via proxy without having to specify