Re: [DNSOP] WG review of draft-ietf-homenet-dot-03

Paul Wouters <paul@nohats.ca> Tue, 21 March 2017 03:08 UTC

Return-Path: <paul@nohats.ca>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 57D381316F4 for <dnsop@ietfa.amsl.com>; Mon, 20 Mar 2017 20:08:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nohats.ca
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 SjQwz67HotFN for <dnsop@ietfa.amsl.com>; Mon, 20 Mar 2017 20:08:19 -0700 (PDT)
Received: from mx.nohats.ca (mx.nohats.ca [IPv6:2a03:6000:1004:1::68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E9AA512945E for <dnsop@ietf.org>; Mon, 20 Mar 2017 20:08:18 -0700 (PDT)
Received: from localhost (localhost [IPv6:::1]) by mx.nohats.ca (Postfix) with ESMTP id 3vnHnX0g6Lzvr; Tue, 21 Mar 2017 04:08:16 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nohats.ca; s=default; t=1490065696; bh=IwA5Borvaw6BegiN9FcFovWpcf4dnf/4KauQ78drRsA=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=LFFyjwJQ8j+UqLnmaVt+1gtv8++K9Lb3+dcbj4y+h6zM49GBpEDVL5WU0QZa8sckp e6Rn1k4CDj0+0mlpUwIwf6VKfrZiTV/zSXC5FHRuVmp1Mudycdv+xDIbFMXQptqc6Q alD29NJXVD9jMnNjI6nHSqpq2WTd7iGHmZBl9Vmo=
X-Virus-Scanned: amavisd-new at mx.nohats.ca
Received: from mx.nohats.ca ([IPv6:::1]) by localhost (mx.nohats.ca [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id rlJCVcGFtqUu; Tue, 21 Mar 2017 04:08:13 +0100 (CET)
Received: from bofh.nohats.ca (bofh.nohats.ca [76.10.157.69]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.nohats.ca (Postfix) with ESMTPS; Tue, 21 Mar 2017 04:08:12 +0100 (CET)
Received: by bofh.nohats.ca (Postfix, from userid 1000) id 8CDFE39D3A1; Mon, 20 Mar 2017 23:08:11 -0400 (EDT)
DKIM-Filter: OpenDKIM Filter v2.11.0 bofh.nohats.ca 8CDFE39D3A1
Received: from localhost (localhost [127.0.0.1]) by bofh.nohats.ca (Postfix) with ESMTP id 78ED8414493A; Mon, 20 Mar 2017 23:08:11 -0400 (EDT)
Date: Mon, 20 Mar 2017 23:08:11 -0400
From: Paul Wouters <paul@nohats.ca>
To: Andrew Sullivan <ajs@anvilwalrusden.com>
cc: dnsop@ietf.org
In-Reply-To: <20170321012352.GI27276@mx4.yitter.info>
Message-ID: <alpine.LRH.2.20.999.1703202258480.8645@bofh.nohats.ca>
References: <21C8F856-FE3F-42A6-A8ED-888D0797B68B@vigilsec.com> <60C85486-E351-4C42-ADEB-FCBB56F4EA27@fugue.com> <AB11455F-7E43-4CB3-9F13-DB6A09F739EB@vigilsec.com> <CEC8CC6A-861A-471C-B7FA-4BB05C81CCF0@gmail.com> <F7AA49EF-2708-4948-9B60-6660DA6BC841@vigilsec.com> <734EC35A-4B1F-43EB-BE37-C34CA46BDA26@fugue.com> <203D2BEA-1008-48A0-9CE2-1FD621C6117F@shinkuro.com> <3134EDC2-FB00-41EA-8338-6E6B196137F1@fugue.com> <572B4EBA-F37F-4E92-A252-44BAF5DE7FF5@shinkuro.com> <alpine.LRH.2.20.999.1703201816140.542@bofh.nohats.ca> <20170321012352.GI27276@mx4.yitter.info>
User-Agent: Alpine 2.20.999 (LRH 202 2017-01-01)
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"; format="flowed"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/FYLcCJZzfBf6YekPM73VxLB2mJI>
Subject: Re: [DNSOP] WG review of draft-ietf-homenet-dot-03
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Mar 2017 03:08:21 -0000

On Mon, 20 Mar 2017, Andrew Sullivan wrote:

> On Mon, Mar 20, 2017 at 06:19:45PM -0400, Paul Wouters wrote:
>> I am assuming that if stubs are validating, then they must also support
>> excluding special queries from validation, such as mDNS, .onion and
>> .homenet.
>
> What possible basis do you have for this?  This is in effect a
> requirement that every validating stub (or resolver?  I dunno) be
> upgraded to support homenet.

https://tools.ietf.org/html/rfc7686 dated October 2015 did this too:

    3.  Name Resolution APIs and Libraries: Resolvers MUST either respond
        to requests for .onion names by resolving them according to
        [tor-rendezvous] or by responding with NXDOMAIN [RFC1035].

    4.  Caching DNS Servers: Caching servers, where not explicitly
        adapted to interoperate with Tor, SHOULD NOT attempt to look up
        records for .onion names.  They MUST generate NXDOMAIN for all
        such queries.

    5.  Authoritative DNS Servers: Authoritative servers MUST respond to
        queries for .onion with NXDOMAIN.

>> The .homenet queries should never reach real DNS servers
>
> But they're going to.

Of course. I was just saying that when they do, there is no good answer
for them.

>> not think an insecure delegation in the root is required. If the DNS
>> resolver doesn't know how to handle .homenet, it is already as wrong
>> as it can be, regardless of the type of answer.
>
> This doesn't follow.  If the resolver gets it wrong in the case of a
> provably-unsigned answer, it can just continue its resolution as it
> ever wanted.  It won't be able to validate, since it does not have a
> local trust anchor.  But it'll work.

But any answer it gets makes no sense anyway, as it doesn't have the
actual required data of the real local .homenet zone. So whether you
give a NXDOMAIN or SERVFAIL or return an A record with 127.0.53.53
doesn't really matter, whether you are 8.8.8.8 or 216.146.35.35.

I guess the only possible exception to this is if the device in the
.homenet got multiple DNS servers from DHCP, and only one of them
and not the first one handles .homenet properly. Of course that's
a pretty broken setup to begin with, so I'm not too worried about
breaking that more.

Paul