On Sat, 13 Aug 2005, wayne wrote:
But you aren't querying for a CNAME, you are querying for another
qtype. When you query for, example, an A record that is found via a
bunch of CNAME lookups, you still get the A record from the resolver.
You also get the CNAMEs, but that's kind of beside the point.
You aren't guaranteed to get the final A record. The resolver tries to
give you stuff you might need, and CNAME chains certainly qualify,
but it is on a best effort basis. Having gotten an answer packet, the
A record - even if helpfully included - is not associated with the
original query name. The application still has to start with the original
name and follow the chain - which may or may not terminate in that
answer packet.
--
Stuart D. Gathman <stuart(_at_)bmsi(_dot_)com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.