On Mon, 15 Nov 2010 18:02:45 -0500, Richard Kettlewell <(E-Mail Removed)> wrote:
> Possible in principle, though I'm describing the C library's resolver,
> which is what most program use. I'd expect others to have the same
> behavior (the alternative is rather mad) but haven't checked.
[dave@hodgins ~]$ host
www.dnssec-failed.org 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:
Host
www.dnssec-failed.org not found: 2(SERVFAIL)
[dave@hodgins ~]$ host
www.dnssec-failed.org
www.dnssec-failed.org has address 68.87.64.48
$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
nameserver 127.0.0.1
nameserver 216.240.0.1
nameserver 216.240.1.1
$ rpm -q -i resolvconf|grep Version
Version : 1.45
$ cat /etc/release
Mandriva Linux release 2010.1 (Official) for i586
As shown above, my localhost version of bind, which is configured
to check dsnsec correctly returns not found for
www.dnssec-failed.org,
when it is explicitly queried.
If I don't comment out the other nameserver entries in /etc/resolv.conf,
and don't specify only to use 127.0.0.1, the ip address is found.
Running the host lookup under strace show it first check 127.0.0.1,
and then 216.240.0.1.
Further testing shows that, for a name that really doesn't exist,
the first server returns NXDOMAIN, and no other name servers
listed in /etc/resolv.conf are used, as you stated, and I understood
until the dnssec tests.
So the difference is whether the name lookup is failing due to
the name not being found, or due to the name failing the dnssec
check, where the resolver gets a response of SERVFAIL from the
dnssec enabled name server.
Your understanding is correct (as was mine, prior to getting
the confused by the results from my dsnsec tests) for a name
that doesn't exist. Thanks for making me test further, and
getting my understanding corrected.
The exception that confused me, only applies for a host with
an invalid RRSIG record, and a name server with dnssec checking
enabled.
Regards, Dave hodgins
--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)