cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Reverse DNS-Lookup by cURL?

From: Gisle Vanem <giva_at_bgnett.no>
Date: Mon, 07 Nov 2005 20:30:24 +0100

<vibesz_at_gmx.de> wrote:

> So it would help a lot, if anybody could tell me, if cURL does these
> reverse-lookups, and, if it does, why and in which case. I have no idea, why
> a reverse-lookup is needed at all.

If configured for IPv6, libcurl calls getaddrinfo() with the AI_CANONNAME in
the hints.ai_flags. Hence the reverse lookup. Why libcurl uses this flag, I
don't really know.

--gv
Received on 2005-11-07