Re: [dane] An AD bit discussion

Tony Finch <dot@dotat.at> Wed, 26 February 2014 18:14 UTC

Return-Path: <fanf2@hermes.cam.ac.uk>
X-Original-To: dane@ietfa.amsl.com
Delivered-To: dane@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 26B0B1A00A9 for <dane@ietfa.amsl.com>; Wed, 26 Feb 2014 10:14:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.548
X-Spam-Level:
X-Spam-Status: No, score=-0.548 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RP_MATCHES_RCVD=-0.547] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id icMxJv5bJ4K9 for <dane@ietfa.amsl.com>; Wed, 26 Feb 2014 10:14:37 -0800 (PST)
Received: from ppsw-52.csi.cam.ac.uk (ppsw-52.csi.cam.ac.uk [IPv6:2001:630:212:8::e:f52]) by ietfa.amsl.com (Postfix) with ESMTP id BEA191A075C for <dane@ietf.org>; Wed, 26 Feb 2014 10:14:11 -0800 (PST)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from hermes-1.csi.cam.ac.uk ([131.111.8.51]:34248) by ppsw-52.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:25) with esmtpa (EXTERNAL:fanf2) id 1WIizh-0004Lz-FD (Exim 4.82_3-c0e5623) for dane@ietf.org (return-path <fanf2@hermes.cam.ac.uk>); Wed, 26 Feb 2014 18:14:09 +0000
Received: from fanf2 by hermes-1.csi.cam.ac.uk (hermes.cam.ac.uk) with local id 1WIizh-0003da-Dh (Exim 4.72) for dane@ietf.org (return-path <fanf2@hermes.cam.ac.uk>); Wed, 26 Feb 2014 18:14:09 +0000
Date: Wed, 26 Feb 2014 18:14:09 +0000
From: Tony Finch <dot@dotat.at>
X-X-Sender: fanf2@hermes-1.csi.cam.ac.uk
To: dane@ietf.org
In-Reply-To: <20140226173630.GZ21390@mournblade.imrryr.org>
Message-ID: <alpine.LSU.2.00.1402261809330.18502@hermes-1.csi.cam.ac.uk>
References: <alpine.LFD.2.10.1402260845520.3528@bofh.nohats.ca> <alpine.LSU.2.00.1402261638490.13302@hermes-1.csi.cam.ac.uk> <20140226173630.GZ21390@mournblade.imrryr.org>
User-Agent: Alpine 2.00 (LSU 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
Sender: Tony Finch <fanf2@hermes.cam.ac.uk>
Archived-At: http://mailarchive.ietf.org/arch/msg/dane/gnhjnGVisksHL8Vxc9hSpXx_FyU
Subject: Re: [dane] An AD bit discussion
X-BeenThere: dane@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DNS-based Authentication of Named Entities <dane.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dane>, <mailto:dane-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dane/>
List-Post: <mailto:dane@ietf.org>
List-Help: <mailto:dane-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dane>, <mailto:dane-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Feb 2014 18:14:41 -0000

Viktor Dukhovni <viktor1dane@dukhovni.org> wrote:
>
> It is in fact problematic if both 127.0.0.1 and another nameserver
> are listed.  The correct semantics of that are hard to define.  It
> makes more sense to define a boolean primitive that marks all the
> nameservers collectively as either trusted or not.

Yes.

> The RES_USE_DNSSEC flag turns on the "DO" bit.  I would be surprised
> if RES_USE_EDNS0 enabled "DO".

Er yes, you are right. I was confused by the way ssh uses the resolver: it
sets RES_USE_DNSSEC only if RES_USE_EDNS0 is set, so putting "options
edns0" in /etc/resolv.conf turns on ssh's trust-AD behaviour. There
is not a separate resolv.conf option for DNSSEC. Grotty.

(Note that when I make statements about resolver behaviour I am checking
boh FreeBSD and glibc - they are pretty consistent in all this.)

> As for setting the "AD" bit in the request automatically, it probably
> should still require an explicit indication of interest from the
> application or be set via a default option value /etc/resolv.conf.

Perhaps, though I think the AD flag is pretty benign.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Forties, Cromarty, Forth, Tyne, Dogger: Southwest 5 to 7, backing south or
southeast 6 to gale 8 for a time. Moderate or rough. Showers then rain.
Good, becoming moderate or poor.