apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: [PATCH] use AI_ADDRCONFIG by default
Date Wed, 16 Jul 2003 15:17:18 GMT
Joe Orton wrote:
> Rationale: Using AF_UNSPEC as the default family passed to getaddrinfo()  
> is a bad default in many configurations; it means AAAA queries will be
> performed, regardless of whether any IPv6 addresses are configured on
> any interfaces (on most systems).  The extra DNS queries mean slower
> lookups.
> The latest revision of the IPv6 socket extensions (RFC 3493) includes a
> new flag, AI_ADDRCONFIG, which tells the resolver to only look up IPv6
> addresses if the system has IPv6 configured on any interfaces, and
> likewise for IPv4.  This is a good default (in fact the Solaris
> getaddrinfo already does this AFAICT).
> Any objections to this patch?  The application can still ask for just
> IPv4 or just IPv6 if it wants, using the _ADDR_OK flags.

no objections here

View raw message