cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: Hostname resolve sequence using the Ares library in Curl

From: Dave Withnall <withnall-at-inspired.net.au_at_lysander.inspired.net.au>
Date: Tue, 04 Nov 2003 21:32:11 +1000

I've seen this behaviour in Solaris before. By default the system was
configured for
lookup file

took me a while to figure out why it wasn't contact DNS.

D.

Frank Ticheler wrote:

>Hi,
>
>We use Curl 7.10.8 (pre1) on HP-Compaq-Alpha and Sun-Solaris with Ares async
>DNS lookup and discovered that the Ares library seems not to read the
>/etc/nsswitch.conf file. We use that file to control the sequence of the
>host lookups (DNS or the /etc/hosts file).
>
>It seems that the Ares library by default prefers the DNS lookup above the
>/etc/hosts file lookup. This behaviour can be changed by adding a lookup tag
>to the /etc/resolv.conf file: lookup files bind. This way, the hosts file is
>checked first.
>
>As far as I know, this lookup tag in resolv.conf is no standard behaviour
>and I would expect the Ares library to read the nsswitch.conf file instead.
>
>I was wondering if anyone has any experience with this also.
>
>
>Thanks in advance for your comments,
>Frank
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: SF.net Giveback Program.
>Does SourceForge.net help you be more productive? Does it
>help you create better code? SHARE THE LOVE, and help us help
>YOU! Click Here: http://sourceforge.net/donate/
>
>.
>
>
>

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Received on 2003-11-04

These mail archives are generated by hypermail.

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

File upload with ASP.NET