cURL / Mailing Lists / curl-library / Single Mail


Re: Reverse DNS-Lookup by cURL?

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

<> 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.

Received on 2005-11-07