Re: Dishonest Forks? | Was - Re: [Namedroppers-honest] Brian Smith asks: Who is Dean Anderson?

Matthew Dempsky <[email protected]>
Newsgroups gmane.network.djbdns
Message-ID <[email protected]>
On Thu, Mar 11, 2010 at 5:03 PM, Dean Anderson <[email protected]> wrote:
> Sending more queries of the x1.av8.net name are answered out of cache,

A query for "A? x1.av8.net" will be answered out of cache, because
x1.av8.net has an NXDOMAIN response.  But an attacker won't issue an
"A? x1.av8.net" query, because there are other queries he can issue
that dnscache *won't* answer out of cache.

Try a few of these queries against an installation of dnscache, and
you'll notice that each of them results in dnscache sending a query to
an authoritative server instead of answering out of cache:

1. dig -t soa google.com @$DNSCACHEIP
2. dig -t cname google.com @$DNSCACHEIP
3. dig -t any ipv6.l.google.com @$DNSCACHEIP
4. dig -t any _jabber._tcp.google.com @$DNSCACHEIP

Explanations:

For #1, dnscache simply never caches SOA records.  Any SOA query will
*always* be sent upstream.

For #2, dnscache doesn't cache NODATA CNAME responses; if a domain
name *does not* have a CNAME record, then an explicit CNAME query will
result in a CNAME query being sent upstream.

For #3 and #4, when dnscache receives an ANY query, it only checks the
cache for NXDOMAIN or CNAME, NS, PTR, MX, and A records.  If a domain
name exists but does not have any of these records (e.g.,
ipv6.l.google.com only has AAAA records and _jabber._tcp.google.com
only has SRV records), then an explicit ANY query will result in an
ANY query being sent upstream.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.