cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Any way to avoid DNS resolve?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 22 Oct 2009 09:06:31 +0200 (CEST)

On Wed, 21 Oct 2009, Robert Campbell wrote:

> That's great news if it can work without doing a resolve. I'm using
> curl-7.19.6 configured "./configure --enable-ares" on Mac OS X Server 10.6.1
> and c-ares-1.6.0 (default configuration). OS X support both IPv4 and IPv6 but
> I am using IPv4. Im using c-ares as the app is multi-threaded, using pthreads
> (based on the multithread.c example).

As you will see in lib/hostares.c, there is code that attempts to avoid the
name resolve if the given name is numerical IP only. Can you figure out why
that isn't working for you?

(and please don't top-post)

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-22

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET