On Thu, 24 Sep 2026, Vladimir Levijev via curl-library wrote:
We noticed this strange thing when using CURLOPT_DNS_SHUFFLE_ADDRESSES
together with CURLOPT_CONNECT_TO curl fails with "Couldn't resolve host
name”.
That sounds like a bug.
Now, the reason we want to turn on “shuffling” is for the redirects. So we
say, connect to this specific IP address, but in case of redirection, when
resolving the hostname of the next target, use shuffling. Is it even
possible?
I would recommend you do the redirect logic yourself (with
CURLINFO_REDIRECT_URL), as then you can easily use shuffling for the second
request only.
--
/ daniel.haxx.se || https://rock-solid.curl.dev
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html