Re: [Cbor] Multiple questions with CBOR for DNS

Carsten Bormann <cabo@tzi.org> Thu, 09 November 2023 14:18 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 BE61EC187735; Thu, 9 Nov 2023 06:18:23 -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 930lXbyG-EG5; Thu, 9 Nov 2023 06:18:19 -0800 (PST)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [134.102.50.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 DA5F9C187734; Thu, 9 Nov 2023 06:18:18 -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 4SR3vq1xZCzDCcY; Thu, 9 Nov 2023 15:18:15 +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: <DU0P190MB19784314798812652C9398CFFDAFA@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM>
Date: Thu, 09 Nov 2023 15:18:03 +0100
Cc: Martine Sophie Lenders <martine.lenders@tu-dresden.de>, "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: <CA604092-3083-4EC0-92E2-80D867BE87C7@tzi.org>
References: <90f306d4-d887-43f6-8990-3c39a7ffcb46@tu-dresden.de> <DU0P190MB19784314798812652C9398CFFDAFA@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM>
To: Esko Dijk <esko.dijk@iotconsultancy.nl>
X-Mailer: Apple Mail (2.3774.200.91.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/4-t2CbEx2fXy4XqGPze26hG4I_c>
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 14:18:23 -0000

Hi Esko,

> question-section = [question+]
>     question = (
>       name: domain-name,
>       ? type-spec,
>     )

The “+” here actually can be efficiently implemented, as long as domain-name and type-spec don’t overlap.

So we can define the question-section to be extensible to multiple questions without additional encoding cost.
Whether people implement this in the DNS servers of course is a different question.

Grüße, Carsten