Re: Last Call: <draft-ietf-dnsop-onion-tld-00.txt> (The .onion Special-Use Domain Name) to Proposed Standard

George Michaelson <ggm@algebras.org> Thu, 13 August 2015 15:55 UTC

Return-Path: <ggm@algebras.org>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AEAC41A88E6 for <ietf@ietfa.amsl.com>; Thu, 13 Aug 2015 08:55:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.987
X-Spam-Level:
X-Spam-Status: No, score=0.987 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_35=0.6, NORMAL_HTTP_TO_IP=0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URI_HEX=1.122] autolearn=no
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 kKHpjpGd32c9 for <ietf@ietfa.amsl.com>; Thu, 13 Aug 2015 08:55:39 -0700 (PDT)
Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5AACA1A88BF for <ietf@ietf.org>; Thu, 13 Aug 2015 08:55:39 -0700 (PDT)
Received: by obbfr1 with SMTP id fr1so40164082obb.1 for <ietf@ietf.org>; Thu, 13 Aug 2015 08:55:38 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=CPWA2TELIsmcPYXum1Y+rVyyx3Ed1SRwcfzyymbQkGM=; b=HJnWETE+vw2J93/nDWekFcT6CnqvhsPFMnBPAKiVvZQnyjYdGzPzisHwxe21BiK5Kq dn1MsmQSIBdkQI1HHLKrzNM+6DYyrwO4JU4m8TX8y8sssgPDaHf6DQtrnFYlJFJaHxtk X2YvIBLolkGNtKJlhM7MSOVvVFICWtJYkgkR+gVb4Oyek68EtT9IW/AGrbrtfGU6xHQ/ eXDdLO1aFhe5Oqki8jFZanyGGGn05OZ1+qjeTR+uzV0LEiCRGAAob14NWSrYdb8A0gBu TpYP6s2m53GVWDgAFbkiaSx1QgNBlqpo/H9MroqByFXm75qoKKXLfT0buKS/CosdrsNV UdOA==
X-Gm-Message-State: ALoCoQm5ijiIKdrCMn1dFKD5STMOeLTYLFE5awu9+d7b0vyATNikidMUDbEkH9rAv+bSmHcyQAio
MIME-Version: 1.0
X-Received: by 10.182.213.227 with SMTP id nv3mr35240917obc.10.1439481338681; Thu, 13 Aug 2015 08:55:38 -0700 (PDT)
Received: by 10.182.94.228 with HTTP; Thu, 13 Aug 2015 08:55:38 -0700 (PDT)
X-Originating-IP: [2001:13c7:7001:2128:ec5b:53f3:8438:4140]
In-Reply-To: <CAKDKvuyQyo=uooaktf2Vayq1kV9dzd12qeVaC+WW_rNP5OrCbg@mail.gmail.com>
References: <20150714192438.1138.96059.idtracker@ietfa.amsl.com> <20150811211733.GG23964@x28.adm.denic.de> <46616F08-3CD4-448E-8638-95CFDA1C6D0F@fb.com> <CA+9kkMDwB9kSoqSuR3MdAgg6j2Kqip7R61GhiDiwFuWrjVGhtA@mail.gmail.com> <F5B862B9-10E4-4131-A675-9EC16FC50036@fb.com> <CA+9kkMBaPK+N1pEAVsYYMD-Fj+PxZKF-vBTk7ETJmBGx45A23w@mail.gmail.com> <F9866E8A-5A95-4FC6-82FA-119101C7544C@fb.com> <CA+9kkMDM9iwMq3SBW2zm0CX=pJKhC-Sfop=jquiEnxXWGSej8w@mail.gmail.com> <ED2EA5CA-881E-462C-A148-00700A0793A8@fb.com> <CAKDKvuyQyo=uooaktf2Vayq1kV9dzd12qeVaC+WW_rNP5OrCbg@mail.gmail.com>
Date: Thu, 13 Aug 2015 12:55:38 -0300
Message-ID: <CAKr6gn0WNBW07-soX6WpxcBSWr4Lhz3f5r1Ku4e5zhZW+CxW8A@mail.gmail.com>
Subject: Re: Last Call: <draft-ietf-dnsop-onion-tld-00.txt> (The .onion Special-Use Domain Name) to Proposed Standard
From: George Michaelson <ggm@algebras.org>
To: Nick Mathewson <nickm@alum.mit.edu>
Content-Type: multipart/alternative; boundary="001a11c303a6da734b051d335de6"
Archived-At: <http://mailarchive.ietf.org/arch/msg/ietf/3umnpbFCU-BnwzWCjnZOdGbosSo>
Cc: Ted Hardie <ted.ietf@gmail.com>, "ietf@ietf.org" <ietf@ietf.org>, Peter Koch <pk@denic.de>, Mark Nottingham <mnot@mnot.net>, Jacob Appelbaum <jacob@appelbaum.net>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Aug 2015 15:55:41 -0000

There is a corollary: If a future revision of .onion labels exceeds 63/256
boundary conditions, then it will change behaviour when presented in the
DNS. In the current situation, it will earn an NXDOMAIN and 'dtrt' in as
much as the return says 'this label is not in the DNS'

in future, if it exceeds the (1980s, we were all younger and wiser then)
proscribed field semantics for DNS, it will return FORMERR and other
replies which may tickle other behaviour than you (we?) expect.

I know I keep harping on about the DNS, and your main goal is to NOT BE in
the DNS. But we also realize the reality that these labels will be
presented to dns gethostbyname() and other packages (getDNS api?) -So the
s/w behaviours of systems have to be considered. A couple of postings in
the thread(s) of this discussion make it clear we all understand, the
labels are going to be seen in the DNS system/ecology, irrespective of if
we wish it or not.

I don't actually think any language has to change. You might just want to
document in TOR paperwork, that changes to the syntax of xxx.onion has to
be assessed against its behaviours in other name-lookup systems.

-G

PS

$ dig @8.8.8.8
123456789012345678901234567890123456789012345678901234567890123.x.dashnxdomain.net.
in a

; <<>> DiG 9.10.2-P3 <<>> @8.8.8.8
123456789012345678901234567890123456789012345678901234567890123.x.dashnxdomain.net.
in a
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 50749
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;
123456789012345678901234567890123456789012345678901234567890123.x.dashnxdomain.net.
IN A

;; AUTHORITY SECTION:
dashnxdomain.net. 0 IN SOA ns1.dashnxdomain.net. research.apnic.net.
2015072201 900 300 1 1

;; Query time: 496 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu Aug 13 12:54:03 UYT 2015
;; MSG SIZE  rcvd: 166

$ dig @8.8.8.8
1234567890123456789012345678901234567890123456789012345678901234.x.dashnxdomain.net.
in a
dig: '
1234567890123456789012345678901234567890123456789012345678901234.x.dashnxdomain.net.'
is not a legal name (label too long)
$


On Thu, Aug 13, 2015 at 11:17 AM, Nick Mathewson <nickm@alum.mit.edu> wrote:

> On Wed, Aug 12, 2015 at 4:49 PM, Alec Muffett <alecm@fb.com> wrote:
> >
> > On Aug 12, 2015, at 1:16 PM, Ted Hardie <ted.ietf@gmail.com> wrote:
> >
> >
> > If you're willing to put a statement like it in the draft, that works for
> > me; it would need to include a slightly broader commitment (not to step
> on
> > other syntax bits, like the IDNA prefix etc), but I think the broader
> > statement would go to exactly the same goal.
> >
> >
> > Given that this is about Onion Registration rather than about Tor
> Project,
> > some wording like
> >
> > “Onion addresses are [blah description blah] and which are consistent
> with
> > DNS syntax limitations of 63 character labels..."
> >
> > …which I think would impose a constraint whilst being aimed at the
> > supposedly correct target.
> >
> > I’ll copy Nick on this to be doubly certain.
>
>
> I think that's (broadly) a good solution.
>
> The important thing here AFAIU is not to nail down the exact semantics
> of current .onion addresses or post-revision .onion addresses or
> 25-years-from-now .onion addresses... but rather to carve out enough
> space for this and future revisions.
>
> So it's IMO fine to say ".onion addresses are case-insensitive and
> will comply with existing DNS limitations for label lengths (63) and
> maximum fqdn lengths (253ish)".
>
> But it it would be problematic to say something like ".onion addresses
> are are exactly N characters long" or ".onion addresses have the
> following structure" or ".onion addresses have exactly two labels" or
> anything like that.  So let's avoid those.
>
> cordially,
> --
> Nick
>
>