Re: [dnsext] BADVER/FORMERR

Ray Bellis <Ray.Bellis@nominet.org.uk> Tue, 15 November 2011 05:56 UTC

Return-Path: <Ray.Bellis@nominet.org.uk>
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 3E62411E811B for <dnsext@ietfa.amsl.com>; Mon, 14 Nov 2011 21:56:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.566
X-Spam-Level:
X-Spam-Status: No, score=-7.566 tagged_above=-999 required=5 tests=[AWL=-0.967, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 1rMSgzHaMOQ9 for <dnsext@ietfa.amsl.com>; Mon, 14 Nov 2011 21:56:00 -0800 (PST)
Received: from mx1.knowthenet.org.uk (mx1.knowthenet.org.uk [213.248.199.2]) by ietfa.amsl.com (Postfix) with ESMTP id D6D1711E8085 for <dnsext@ietf.org>; Mon, 14 Nov 2011 21:55:59 -0800 (PST)
DomainKey-Signature: s=main.dk.nominet.selector; d=nominet.org.uk; c=nofws; q=dns; h=X-IronPort-AV:Received:Received:From:To:CC:Subject: Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language: X-MS-Has-Attach:X-MS-TNEF-Correlator:Content-Type: Content-ID:Content-Transfer-Encoding:MIME-Version; b=L75+Jo5pnfPJ6z3csh6J6F7N502oKmpA0NoVvU2fzygd6HPe3bbyL03c xXfXpI1p3tClh+18jB+Gnl09lPWtAp/j1ehTnkLIQgCHxsx4aqPUyQqGb oPJi1AZFJ4PVfXP;
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nominet.org.uk; i=Ray.Bellis@nominet.org.uk; q=dns/txt; s=main.dkim.nominet.selector; t=1321336560; x=1352872560; h=from:sender:reply-to:subject:date:message-id:to:cc: mime-version:content-transfer-encoding:content-id: content-description:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-message-id:in-reply-to: references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; z=From:=20Ray=20Bellis=20<Ray.Bellis@nominet.org.uk> |Subject:=20Re:=20[dnsext]=20BADVER/FORMERR|Date:=20Tue, =2015=20Nov=202011=2005:55:57=20+0000|Message-ID:=20<E4B3 9520-1B7B-4383-8D0F-C0B26E3DE49F@nominet.org.uk>|To:=20Di ck=20Franks=20<rwfranks@acm.org>|CC:=20"dnsext@ietf.org =20Group"=20<dnsext@ietf.org>|MIME-Version:=201.0 |Content-Transfer-Encoding:=20quoted-printable |Content-ID:=20<c38effdb-c20d-4281-b4ad-5034daed6d4c> |In-Reply-To:=20<CAKW6Ri7Am5DjrYx+F_6FDE4-+Rh2+WuAptY6QyN NwtpOkbAcdw@mail.gmail.com>|References:=20<20111111025007 .B689B17061FA@drugs.dv.isc.org>=0D=0A=20<20111114222302.F 0159171B01D@drugs.dv.isc.org>=0D=0A=20<CAKW6Ri7Am5DjrYx+F _6FDE4-+Rh2+WuAptY6QyNNwtpOkbAcdw@mail.gmail.com>; bh=wi442ha4GHVARHII6EKBXK6cqlEKCkYn7LyYcwwReoY=; b=uHD+9Dj/I27+26qZ/d18SKNqIHJ7e7rUGQqs5WDsKSSWiQFYyRlxFoqU 9IfMRKIlxf4ZIhVBNBYo7jJhqscJ2b53wM3viRWcCHa9T1NRM3PhJtsZX RiM6kRFypNjp9Y/;
X-IronPort-AV: E=Sophos;i="4.69,513,1315177200"; d="scan'208";a="36611886"
Received: from wds-exc2.okna.nominet.org.uk ([213.248.197.145]) by mx3.nominet.org.uk with ESMTP; 15 Nov 2011 05:55:58 +0000
Received: from WDS-EXC1.okna.nominet.org.uk ([fe80::1593:1394:a91f:8f5f]) by wds-exc2.okna.nominet.org.uk ([fe80::7577:eaca:5241:25d4%19]) with mapi; Tue, 15 Nov 2011 05:55:57 +0000
From: Ray Bellis <Ray.Bellis@nominet.org.uk>
To: Dick Franks <rwfranks@acm.org>
Thread-Topic: [dnsext] BADVER/FORMERR
Thread-Index: AQHMoxv45mAz8aYz4U6U8KCek//FTpWtWZgAgAAWrIA=
Date: Tue, 15 Nov 2011 05:55:57 +0000
Message-ID: <E4B39520-1B7B-4383-8D0F-C0B26E3DE49F@nominet.org.uk>
References: <20111111025007.B689B17061FA@drugs.dv.isc.org> <20111114222302.F0159171B01D@drugs.dv.isc.org> <CAKW6Ri7Am5DjrYx+F_6FDE4-+Rh2+WuAptY6QyNNwtpOkbAcdw@mail.gmail.com>
In-Reply-To: <CAKW6Ri7Am5DjrYx+F_6FDE4-+Rh2+WuAptY6QyNNwtpOkbAcdw@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <c38effdb-c20d-4281-b4ad-5034daed6d4c>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "dnsext@ietf.org Group" <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: Tue, 15 Nov 2011 05:56:01 -0000

On 15 Nov 2011, at 12:34, Dick Franks wrote:

> IMHO, we should consider separately whether FORMERR is a proper
> response to a query with zero QDCOUNT.

or _anything_ other than QDCOUNT == 1

> 
> The text of RFC1035 (4.1.2) describes the question section thus:
> 
>  The question section is used to carry the "question" in most queries,
>  i.e., the parameters that define what is being asked.  The section
>  contains QDCOUNT (usually 1) entries, each of the following format ...
> 
> This certainly does not exclude the possibility of an empty question
> section in a query packet and hence there is no justification for
> responding with FORMERR.

Actually, it's vague in RFC 1035.

RFC 1034 is quite specific about "_the_ query name" (singular) in the context of standard query processing (see e.g. §3.7)

I therefore interpret that parenthetical comment as applying to other OPCODE values than "QUERY".  For example IQUERY does (did) use QDCOUNT == 0.

> No additional legislation should be necessary; implementations which
> return FORMERR in response to zero QDCOUNT are non-compliant with
> RFC1035. Client-side code which relies upon such behaviour is
> similarly non-compliant.


The semantics for QDCOUNT != 1 are not defined for "QUERY" so (IMHO) FORMERR is appropriate.

Ray