curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Why resolve the dns locally when using a socks5 proxy

From: Daniel Stenberg via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 15 Aug 2019 20:01:39 +0200 (CEST)

On Fri, 16 Aug 2019, Qiying Wang via curl-users wrote:

> It define's a boolean variable socks5_resolve_local, which is a flag to
> decide whether to resolve dns locally. Apparently when the proxy is a socks5
> proxy, it would be true.

Socks5 allows the name to be resolved locally or remotely. curl supports both
ways.

> As far as I'm concerned, it's better for curl to have this feature.

It already does. See --socks5-hostname or specify the proxy with --proxy
socks5h://host.example.com/.

-- 
  / daniel.haxx.se | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-08-15