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: Confused about --doh/--resolve

From: Daniel Stenberg via curl-users <>
Date: Tue, 11 Aug 2020 13:36:18 +0200 (CEST)

On Tue, 11 Aug 2020, Gisle Vanem via curl-users wrote:

I think you primarily see this KNOWN_BUG:

> I'm confused about what a command like this does:
> curl --ipv4 --resolve \
> --doh-url \
> First, I note curl connects to '' using IPv6
> even though I specified '--ipv4' and added ''s
> IPv4 address to this "fake" DNS-cache.

--ipv4 is meant and used for the primary transfer, the connection to in your command line.

As the known DoH bug says, lots of transfer options are not copied into the
transfer used for the DoH request. I think perhaps primarily now because its
not clear exactly what options to inherit or if we should rather add new
options for that, which in itself would be really annoying.

But maybe there's also a bug in there:

> Adding a '-v', I see this confusing trace:
> * family0 == v6, family1 == v4
> * Trying 2606:4700::6810:f8f9:443...

This seems to indicate that curl resolved "" anyway, which
it seems it shouldn't have done.

  / | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
Received on 2020-08-11