cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_init with c-ares, but without nameservers?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 7 Nov 2004 14:49:37 +0100 (CET)

On Sun, 7 Nov 2004, Andreas Rieke wrote:

> before starting to debug, I should be a little more precise about my
> problem. When seeing curl_easy_init returning NULL, I was working with the
> windows application thinking that linux will behave in the same way. After
> testing things under linux without any nameservers defined in
> /etc/resolv.conf, I see that curl_easy_init returns with a valid CURL * and
> returns an error "couldnt resolve host name" when trying to resolve a name
> later. This is exactly what I am dreaming about :-) .
>
> However, I have seen the windows problem on different machines under XP and
> 2000, thus I do not think that this is a local configuration problem. Does
> that already help you or should I try to debug ares_init?

I'm sorry, but I'm not familiar with the win32 areas of the c-ares code, so
no, this doesn't help me much. It does however more strongly suggest that the
problem is in ares_init's win32-specific code.

> By the way, in your file areslib.mak in vc/areslib, the modules ares_version
> and ares_cancel are missing.

Thanks! Fixed in CVS now.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-11-07