cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Reverse DNS-Lookup by cURL?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Nov 2005 20:36:11 +0100 (CET)

On Mon, 7 Nov 2005, Gisle Vanem wrote:

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

It really doesn't have any reason and we should most probably remove it.

(and that flag is only used if the address isn't numerical-only.)

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-11-07