Re: [art] draft-ietf-dnsop-attrleaf

Adam Roach <adam@nostrum.com> Thu, 10 August 2017 02:52 UTC

Return-Path: <adam@nostrum.com>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CB0EE132529 for <art@ietfa.amsl.com>; Wed, 9 Aug 2017 19:52:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.88
X-Spam-Level:
X-Spam-Status: No, score=-1.88 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01] 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 0XkYFTYPV_B7 for <art@ietfa.amsl.com>; Wed, 9 Aug 2017 19:52:20 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (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 7FB3C127735 for <art@ietf.org>; Wed, 9 Aug 2017 19:52:20 -0700 (PDT)
Received: from Svantevit.local (99-152-146-228.lightspeed.dllstx.sbcglobal.net [99.152.146.228]) (authenticated bits=0) by nostrum.com (8.15.2/8.15.2) with ESMTPSA id v7A2qG4k057731 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 9 Aug 2017 21:52:17 -0500 (CDT) (envelope-from adam@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host 99-152-146-228.lightspeed.dllstx.sbcglobal.net [99.152.146.228] claimed to be Svantevit.local
To: John R Levine <johnl@taugh.com>
Cc: Dave Crocker <dcrocker@bbiw.net>, art@ietf.org
References: <20170803003526.2349.qmail@ary.lan> <8cbaba50-a7d8-94b1-8cd0-fa8310e0b17d@bbiw.net> <47fcd0be-e4b6-2efc-266a-2eaef6243346@nostrum.com> <alpine.OSX.2.21.1708091935040.35501@ary.qy>
From: Adam Roach <adam@nostrum.com>
Message-ID: <0ce197ca-64ee-bbcf-0c42-779996742113@nostrum.com>
Date: Wed, 09 Aug 2017 21:52:10 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <alpine.OSX.2.21.1708091935040.35501@ary.qy>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/jpwshVvR-uQDm1oU_Z9AeGSOUUU>
Subject: Re: [art] draft-ietf-dnsop-attrleaf
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 10 Aug 2017 02:52:22 -0000

On 8/9/17 6:36 PM, John R Levine wrote:
> See rfc3588 which has some _sctp names for NAPTR records. 


I presume you're referring to the example in Appendix B? I can see how 
it might look like that on first glance, but a careful parsing of what's 
there shows that the only reason it looks like that is because there's 
been some formatting damage. The literal text that's there is:

    ;;          order pref flags service           regexp  replacement
       IN NAPTR 50   50  "s"  "AAA+D2S"           ""
       _diameter._sctp.example.com IN NAPTR 100  50  "s"  "AAA+D2T"
       ""  _aaa._tcp.example.com

This is accompanied with an explanation that there are two NAPTR records 
present (one for AAA+D2S and one for AAA+D2T). I suppose you're reading 
the second line of this text to say "the host 
_diameter._sctp.example.com has an NAPTR record for 'AAA+D2T', with an 
empty regexp and a replacement of '_aaa._tcp.example.com"

Aside from that being kind of nonsense, I'll note that the *first* 
record (if this "_diameter._sctp.example.com" string is part of the 
second record) has no replacement value -- which clearly doesn't work.

The only way this makes sense is if you read the first record as:

   IN NAPTR 50   50  "s"  "AAA+D2S"  ""  _diameter._sctp.example.com

...and the second record as:

   IN NAPTR 100  50  "s"  "AAA+D2T"  ""  _aaa._tcp.example.com

...at which point it becomes clear that the underscores are only in the 
"replacement" field, and not used as input for NAPTR.

I'll file an erratum.

/a