Re: [DNSOP] Self-describing RTYPE in the DNS, draft-levine-dnsextlang (was DNS-in-JSON draft)

Tony Finch <dot@dotat.at> Tue, 06 September 2016 20:48 UTC

Return-Path: <dot@dotat.at>
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 171E012B449 for <dnsop@ietfa.amsl.com>; Tue, 6 Sep 2016 13:48:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.221
X-Spam-Level:
X-Spam-Status: No, score=-4.221 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001] autolearn=ham autolearn_force=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 duNv8EKuwzKS for <dnsop@ietfa.amsl.com>; Tue, 6 Sep 2016 13:48:30 -0700 (PDT)
Received: from ppsw-40.csi.cam.ac.uk (ppsw-40.csi.cam.ac.uk [131.111.8.140]) (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 5259712B411 for <dnsop@ietf.org>; Tue, 6 Sep 2016 13:48:30 -0700 (PDT)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from grey.csi.cam.ac.uk ([131.111.57.57]:49448) by ppsw-40.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.138]:25) with esmtps (TLSv1:ECDHE-RSA-AES256-SHA:256) id 1bhNIC-000SVx-kU (Exim 4.86_36-e07b163) (return-path <dot@dotat.at>); Tue, 06 Sep 2016 21:48:28 +0100
Date: Tue, 06 Sep 2016 21:48:28 +0100
From: Tony Finch <dot@dotat.at>
To: John R Levine <johnl@taugh.com>
In-Reply-To: <alpine.OSX.2.11.1609061525250.25637@ary.lan>
Message-ID: <alpine.DEB.2.11.1609062143490.21088@grey.csi.cam.ac.uk>
References: <20160905154737.5a1c67e5@pallas.home.time-travellers.org> <20160905163800.23620.qmail@ary.lan> <20160906123610.741452e4@pallas.home.time-travellers.org> <alpine.OSX.2.11.1609061217270.24706@ary.lan> <alpine.DEB.2.11.1609061951560.4488@grey.csi.cam.ac.uk> <alpine.OSX.2.11.1609061525250.25637@ary.lan>
User-Agent: Alpine 2.11 (DEB 23 2013-08-11)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/vOA2-ADjZa83Em_tpVOapXrBEJE>
Cc: dnsop@ietf.org
Subject: Re: [DNSOP] Self-describing RTYPE in the DNS, draft-levine-dnsextlang (was DNS-in-JSON draft)
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.17
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, 06 Sep 2016 20:48:32 -0000

John R Levine <johnl@taugh.com> wrote:
>
> I'm close to that.  If a field is odd but it's a minor variant of something
> else, such as the hex fields with optional hyphens or dots, it's easy enough
> to include.  Or if it seems like it might be useful in the future, like a
> trailing list of domain names which could show up in something like CLONE,
> might as well.

Yep.

> Beyond that, I don't think anyone will ever reuse the odd arithmetic in LOC or
> the data-dependent formats in IPSECKEY, so if I do anything for them, it'll be
> something like Z[LOC] or Z[IPSECKEY] meaning do the appropriate special
> hackery for that record type.

Yep. My model was to treat special cases like these as a single field
which just happens to have a particularly complicated implementation -
multiple subfields etc.

> Not sure what to do with the type bit maps in NSEC.  They're reused in
> NSEC3, and both records are certainly in active use.

It's worth treating widely used and re-used RDATA fields as reusable
field types :-)

I'll have a look at your latest draft.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/  -  I xn--zr8h punycode
Humber, Thames, Dover, Wight: Variable 3 or 4. Smooth or slight. Fog patches.
Moderate, occasionally very poor.