cURL / Mailing Lists / curl-users / Single Mail

curl-users

Hostname resolve sequence using the Ares library in Curl

From: Frank Ticheler <frank.ticheler_at_logicacmg.com>
Date: Tue, 4 Nov 2003 10:37:11 +0100

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/
Received on 2003-11-04