Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2008 11:53:26 -0700
From:      JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= <Jinmei_Tatuya@isc.org>
To:        Steve Bertrand <iaccounts@ibctech.ca>
Cc:        freebsd-net@freebsd.org
Subject:   Re: IPv6/IPv4 DNS resolver source
Message-ID:  <m2wslfwpcp.wl%Jinmei_Tatuya@isc.org>
In-Reply-To: <483B3E7F.8000907@ibctech.ca>
References:  <483B3E7F.8000907@ibctech.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
At Mon, 26 May 2008 18:49:35 -0400,
Steve Bertrand <iaccounts@ibctech.ca> wrote:

> Is there anyone here who can advise me where in the source tree I would 
> find the DNS resolver code that performs AAAA/A record lookups, and more 
> specifically, the fallback to A lookup if AAAA fails?

Assuming you're considering getaddrinfo(), see res_queryN() in
lib/libc/net/getaddrinfo.c.

BTW: "fallback" does not really accurately describe the behavior.
When AF_UNPSEC is specified, both AAAA and A queries are issued,
whether or not the AAAA query fails.

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m2wslfwpcp.wl%Jinmei_Tatuya>