cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: getaddrinfo() of multi-IP returns the same one first

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 20 Oct 2005 20:42:24 +0200 (CEST)

On Wed, 19 Oct 2005, Dan Fandrich wrote:

>> Am I hallucinating?
>
> I tried it here and I get a random addresses every time, as expected. Are
> you sure you don't have a caching nameserver in the data path?

No I don't, and nslookup for example shows a random order.

I also now tried with a rebuilt curl with IPv6 disabled, and then it properly
works in random order! (And I rebuilt it again with IPv6 support and then it
went back to the previous way...)

So possibly this is some artifact of getaddrinfo() in glibc 2.3.5 or
something.

Thanks for your reply anyway!

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