Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Oct 2009 18:16:49 +0000
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Sean Cavanaugh <millenia2000@hotmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: FW: DNS Question
Message-ID:  <4AE49611.4030008@qeng-ho.org>
In-Reply-To: <BAY126-W12706A30D1794B2638ABC3CABD0@phx.gbl>
References:  <200910231717.AA243925902@mail.Go2France.com> <BAY126-W12706A30D1794B2638ABC3CABD0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
Sean Cavanaugh wrote:
> The other interesting side would be reverse DNS lookups. Only one
 > record would be returned, and most likely would be the original A
 > record. A nice example of this is doing a basic "ping -a ww.yahoo.com"
 > which you get back that it is resolving "www-real.wa1.b.yahoo.com".

As a comment on reverse DNS lookups, although the example Sean gave 
should have a single PTR entry as the result of a reverse lookup, in 
general reverse DNS lookups can return *multiple* values. If multiple A 
records pointing at the same numeric address exist, the reverse lookup 
on that address must (if correct) return the corresponding multiple names.

RFC 2181 (Clarifications to the DNS Specification), section 10.2:

10.2. PTR records

    Confusion about canonical names has lead to a belief that a PTR
    record should have exactly one RR in its RRSet.  This is incorrect,
    the relevant section of RFC1034 (section 3.6.2) indicates that the
    value of a PTR record should be a canonical name.  That is, it should
    not be an alias.  There is no implication in that section that only
    one PTR record is permitted for a name.  No such restriction should
    be inferred.

    Note that while the value of a PTR record must not be an alias, there
    is no requirement that the process of resolving a PTR record not
    encounter any aliases.  The label that is being looked up for a PTR
    value might have a CNAME record.  That is, it might be an alias.  The
    value of that CNAME RR, if not another alias, which it should not be,
    will give the location where the PTR record is found.  That record
    gives the result of the PTR type lookup.  This final result, the
    value of the PTR RR, is the label which must not be an alias.

OK, there's a couple of big questions, which is how many DNS configs 
actually obey this and how much application code allows for it, but 
that's the spec.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AE49611.4030008>