cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Name lookup/DNS resolution mechanism of libcurl

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 01 Apr 2013 17:51:52 +0200

"Michael-O" <1983-01-06_at_gmx.net> wrote:

> Jackpot!
>
> No proxies but I found several addresses in 192.168.56.*
> This is the VirtualBox (version 4.1.24 installed) Host-Only Network
> adapter. I have disabled it, and boom curl resolves immediately. A bug
> in VirtualBox I would guess. Some similar issue is still open [1].

I see similar issues with "AsyncDNS" if I have a "dead" or really slow
nameserver in the list of DNS-server libcurl is trying. Building without
USE_ARES gives much better resolve times in this case. AFAICS since
the WindDNS (the code enabled by USE_THREADS_WIN32) is smarter
than C-ares is. "ipconfig /all" will give you a hint of what DNS-servers
C-ares will try.

BTW. Gunter, your testspeed.bat file writes the test-file to disk
  and then deletes it right after. IMHO when testing just network speed,
  (and rule out a slow disk) you could write to the NUL-device and possibly
  eliminate some timing "errors":
    curl -s -A "%UAGENT%" -w "%OUTFMT%" -o NUL %BASEURL%/%DLFILE%

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-01