curl / Mailing Lists / curl-library / 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.

DOH: minor bug: store_cname() is storing duplicate CNAMEs

From: Niall O'Reilly via curl-library <>
Date: Mon, 25 Nov 2019 12:24:14 +0000

Iā€™m not sure whether this is worth opening an issue.

If the target hostname is an alias, the DNS returns a CNAME in the
answer to each of the queries which Curl_doh() launches. In the
standard libcurl build, there are two of these, with QTYPE of A
and AAAA respectively.

During decoding, these are found and stored separately, although
the values are identical. I (or somebody else) may find time at
some stage to add duplicate-suppression to store_cname().

Here below is a snippet from the verbose progress message stream.

* a DOH request is completed, 0 to go
* DOH Host name:
* TTL: 3150 seconds
* DOH A:
* DOH AAAA: 2a04:2e00:0001:0001:0000:0000:0000:000a
* Trying


ā€” Ends ā€”

Received on 2019-11-25