Re: [dnsext] BADVER/FORMERR

Johan Ihrén <johani@autonomica.se> Wed, 16 November 2011 18:39 UTC

Return-Path: <johani@autonomica.se>
X-Original-To: dnsext@ietfa.amsl.com
Delivered-To: dnsext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9408621F93F2 for <dnsext@ietfa.amsl.com>; Wed, 16 Nov 2011 10:39:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.699
X-Spam-Level:
X-Spam-Status: No, score=-1.699 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_65=0.6, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8x1oycK+PTgI for <dnsext@ietfa.amsl.com>; Wed, 16 Nov 2011 10:39:56 -0800 (PST)
Received: from defiant.autonomica.se (unknown [IPv6:2a01:3f0:1:3::105]) by ietfa.amsl.com (Postfix) with ESMTP id F303921F9519 for <dnsext@ietf.org>; Wed, 16 Nov 2011 10:39:51 -0800 (PST)
Received: from [198.32.17.196] (c-15f5e255.51-2-64736c14.cust.bredbandsbolaget.se [85.226.245.21]) (Authenticated sender: johani) by defiant.autonomica.se (Postfix) with ESMTPSA id 868D67CBBA; Wed, 16 Nov 2011 19:39:50 +0100 (CET)
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: Johan Ihrén <johani@autonomica.se>
In-Reply-To: <20111116004945.D4CC6173AE05@drugs.dv.isc.org>
Date: Wed, 16 Nov 2011 19:39:50 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <F6887515-0D68-4BF7-AE41-0CF47DB26CD6@autonomica.se>
References: <20111115153055.205a61dff9fc1684c258b274662bb912.4a8b265d31.wbe@email00.secureserver.net> <20111116004945.D4CC6173AE05@drugs.dv.isc.org>
To: dnsext <dnsext@ietf.org>
X-Mailer: Apple Mail (2.1084)
Subject: Re: [dnsext] BADVER/FORMERR
X-BeenThere: dnsext@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: DNS Extensions working group discussion list <dnsext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsext>, <mailto:dnsext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dnsext>
List-Post: <mailto:dnsext@ietf.org>
List-Help: <mailto:dnsext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsext>, <mailto:dnsext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Nov 2011 18:39:56 -0000

On Nov 16, 2011, at 01:49 , Mark Andrews wrote:

> QCOUNT > 1 is hard because there is one rcode and more that one possible
> response.
> 
> QCOUNT = 0 gets rid of all name based acl processing.
> QCOUNT = 0 is independent of the zones being served.
> QCOUNT = 0 in plain DNS gives you a test to see if the server is
> alive, whether it will recurse for you or not (RA), and whether it
> will in general answer queries for you.
> 
> Note QCOUNT > 1 is a valid in a response to a IQUERY.

While not immediately relevant to the current discussion I make the observation that once upon a time many, many moons ago there was discussions about a possible alternate design for DNSSEC called "slabs". The idea with slabs was that we could do away with the DO bit and the subtyping of the RRSIG by making two changes:

1. Combine RR + RRSIG(RR) into a new record which was a "slab" (a single RR that contained the unsigned RRset + the signature over the RRset). I.e. an A + RRSIG(A) would be an A-SIG, etc.

2. Instead of having resolvers signal DNSSEC interest via the DO bit they would query for both the A and the A-SIG in the same query, i.e. with a QDCOUNT=2. 

There were various pros and cons with this and in the end this is not what became DNSSEC as we know it today. 

And my point with lifting this old and mouldy stone is that I think it would be a mistake to go down the route it sounds to me that Ray is aiming for ("disallow anything but QDCOUNT=1 in if OPCODE=QUERY because that's most efficient"). 

RFC1035 doesn't say QDCOUNT=1 (then we wouldn't have that as a counter at all) and just because we here and now, today, may see a point to such a restriction does not mean that such a thing wouldn't come back and haunt us in the future when we come up with some new and clever usage that depends on the ability to have more than one query in the QUERY.

Ray: apologies in advance if I misinterpreted your position. If I did, my point still remains, though.

Johan