Re: [Cbor] Multiple questions with CBOR for DNS
Carsten Bormann <cabo@tzi.org> Thu, 09 November 2023 15:25 UTC
Return-Path: <cabo@tzi.org>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9AE08C18E53F; Thu, 9 Nov 2023 07:25:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.909
X-Spam-Level:
X-Spam-Status: No, score=-6.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T5a3J2xacWZD; Thu, 9 Nov 2023 07:25:23 -0800 (PST)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E4DF8C18E528; Thu, 9 Nov 2023 07:25:22 -0800 (PST)
Received: from smtpclient.apple (unknown [IPv6:2001:67c:370:128:3c01:5633:9f0f:5606]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4SR5PD5lnPzDCdG; Thu, 9 Nov 2023 16:25:20 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <83a63ff9-e36f-4e82-918b-4294570a6598@tu-dresden.de>
Date: Thu, 09 Nov 2023 16:25:08 +0100
Cc: Esko Dijk <esko.dijk@iotconsultancy.nl>, "cbor@ietf.org" <cbor@ietf.org>, "draft-lenders-dns-cbor.authors@ietf.org" <draft-lenders-dns-cbor.authors@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <4C5086F6-1B56-4428-B0B0-63DA4DFBA2BA@tzi.org>
References: <90f306d4-d887-43f6-8990-3c39a7ffcb46@tu-dresden.de> <DU0P190MB19784314798812652C9398CFFDAFA@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM> <c36a1e19d66c40009e0abe51f9c2bcf5@msx-l317.msx.ad.zih.tu-dresden.de> <66bc2b17-888b-440e-9eae-4ea2633f157d@tu-dresden.de> <d1191e0d356248ef83c413469e025d81@msx-l317.msx.ad.zih.tu-dresden.de> <83a63ff9-e36f-4e82-918b-4294570a6598@tu-dresden.de>
To: Martine Sophie Lenders <martine.lenders@tu-dresden.de>
X-Mailer: Apple Mail (2.3774.200.91.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/LVmugVK0M1YB-Xym2_xm87CAebY>
Subject: Re: [Cbor] Multiple questions with CBOR for DNS
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Nov 2023 15:25:28 -0000
How about:
question-section = [
* full-question,
? last-question
]
full-question = (
name: domain-name,
type-spec,
)
last-question = (
name: domain-name,
? type-spec,
)
It is a bit hard in this form to maintain the requirement for at least one question, because if the last question is also a full question, it will be gobbled up by the `* question` part.
(An intersection would work, but requires two parsing threads.)
> In the current draft, it is not, but if we go for the name component route, it will become hard to distinguish between the name for a second question or another component of the name for the first. Just necessitating at least a type in-between the names would help with that
Grüße, Carsten
- [Cbor] Multiple questions with CBOR for DNS Martine Sophie Lenders
- Re: [Cbor] Multiple questions with CBOR for DNS Esko Dijk
- Re: [Cbor] Multiple questions with CBOR for DNS Carsten Bormann
- Re: [Cbor] Multiple questions with CBOR for DNS Martine Sophie Lenders
- Re: [Cbor] Multiple questions with CBOR for DNS Carsten Bormann
- Re: [Cbor] Multiple questions with CBOR for DNS Martine Sophie Lenders
- Re: [Cbor] Multiple questions with CBOR for DNS Carsten Bormann
- Re: [Cbor] Multiple questions with CBOR for DNS Joe Hildebrand
- Re: [Cbor] Multiple questions with CBOR for DNS Martine Sophie Lenders
- Re: [Cbor] Multiple questions with CBOR for DNS Carsten Bormann