Re: [dnsext] BADVER/FORMERR

Mark Andrews <marka@isc.org> Sat, 12 November 2011 08:49 UTC

Return-Path: <marka@isc.org>
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 4235521F85C7 for <dnsext@ietfa.amsl.com>; Sat, 12 Nov 2011 00:49:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[AWL=-0.002, BAYES_00=-2.599]
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 a-lY9P-G5co1 for <dnsext@ietfa.amsl.com>; Sat, 12 Nov 2011 00:49:46 -0800 (PST)
Received: from mx.ams1.isc.org (mx.ams1.isc.org [IPv6:2001:500:60::65]) by ietfa.amsl.com (Postfix) with ESMTP id 77AF121F85B9 for <dnsext@ietf.org>; Sat, 12 Nov 2011 00:49:46 -0800 (PST)
Received: from bikeshed.isc.org (bikeshed.isc.org [IPv6:2001:4f8:3:d::19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "bikeshed.isc.org", Issuer "ISC CA" (verified OK)) by mx.ams1.isc.org (Postfix) with ESMTPS id B70845F98B7; Sat, 12 Nov 2011 08:49:32 +0000 (UTC) (envelope-from marka@isc.org)
Received: from drugs.dv.isc.org (unknown [IPv6:2001:470:1f00:820:6233:4bff:fe01:7585]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bikeshed.isc.org (Postfix) with ESMTPSA id 1FD07216C84; Sat, 12 Nov 2011 08:49:31 +0000 (UTC) (envelope-from marka@isc.org)
Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (Postfix) with ESMTP id A6299171131B; Sat, 12 Nov 2011 19:49:28 +1100 (EST)
To: Ray Bellis <Ray.Bellis@nominet.org.uk>
From: Mark Andrews <marka@isc.org>
References: <20111111025007.B689B17061FA@drugs.dv.isc.org> <8B7F972437853B40865000D86857B1D118DC4B13@wds-exc1.okna.nominet.org.uk>
In-reply-to: Your message of "Fri, 11 Nov 2011 12:42:24 -0000." <8B7F972437853B40865000D86857B1D118DC4B13@wds-exc1.okna.nominet.org.uk>
Date: Sat, 12 Nov 2011 19:49:28 +1100
Message-Id: <20111112084928.A6299171131B@drugs.dv.isc.org>
Cc: "dnsext@ietf.org" <dnsext@ietf.org>
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: Sat, 12 Nov 2011 08:49:47 -0000

In message <8B7F972437853B40865000D86857B1D118DC4B13@wds-exc1.okna.nominet.org.uk>, Ray Bellis writes:
> >  EDNS version processing is supposed to take precedence
> > over examining the query section
> 
> Defined where?  I don't see anything like that in RFC 2308.

EDNS is RFC 2671.  If you don't support the EDNS version in the
request you must send back BADVER.  At that point trying to process
the question section, whatever it is, is moot as the RCODE has
already been set.

> > as the EDNS version can influence the interpretion of the
> > question section.
> 
> Ditto.
> 
> Just out of interest, are there any _existing_ legitimate circumstances where
> QDCOUNT != 1 ?

Seeing if a server is alive.
Getting the EDNS UDP size prior to sending a UPDATE. 
Getting the EDNS version prior to anything.

If I set qcount=2 with ./in/a and ./in/aaaa and edns=50 the correct
rcode for a edns=0 server is BADVER.

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka@isc.org