[dnsext] BADVER/FORMERR

Mark Andrews <marka@isc.org> Fri, 11 November 2011 02:50 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 6034011E8099 for <dnsext@ietfa.amsl.com>; Thu, 10 Nov 2011 18:50:41 -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 QxaDe-GN++gM for <dnsext@ietfa.amsl.com>; Thu, 10 Nov 2011 18:50:41 -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 D488C11E8080 for <dnsext@ietf.org>; Thu, 10 Nov 2011 18:50:40 -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 E2FC25F98AF for <dnsext@ietf.org>; Fri, 11 Nov 2011 02:50:26 +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 EEFE5216C71 for <dnsext@ietf.org>; Fri, 11 Nov 2011 02:50:24 +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 B689B17061FA for <dnsext@ietf.org>; Fri, 11 Nov 2011 13:50:07 +1100 (EST)
To: dnsext@ietf.org
From: Mark Andrews <marka@isc.org>
Date: Fri, 11 Nov 2011 13:50:07 +1100
Message-Id: <20111111025007.B689B17061FA@drugs.dv.isc.org>
Subject: [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: Fri, 11 Nov 2011 02:50:41 -0000

I was looking for a good way to test for EDNS support and hacked
dig to send out a empty question section when the EDNS version was
set to 255 and got what I believe to be incorrect responses from K
and L.  EDNS version processing is supposed to take precedence over
examining the query section as the EDNS version can influence the
interpretion of the question section.  I believe the correct response
should be BADVERS.  Adding a question elicited BADVERS.

Do others agree with my interpretion of rcode precedence?

Mark

marka% bin/dig/dig +edns=255 +norec @k.root-servers.net

; <<>> DiG 9.9.0b1 <<>> +edns=255 +norec @k.root-servers.net
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: FORMERR, id: 40361
;; flags: qr; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; Query time: 255 msec
;; SERVER: 2001:7fd::1#53(2001:7fd::1)
;; WHEN: Fri Nov 11 13:34:50 2011
;; MSG SIZE  rcvd: 12

marka% bin/dig/dig +edns=255 +norec @l.root-servers.net

; <<>> DiG 9.9.0b1 <<>> +edns=255 +norec @l.root-servers.net
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: FORMERR, id: 34663
;; flags: qr; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; Query time: 175 msec
;; SERVER: 2001:500:3::42#53(2001:500:3::42)
;; WHEN: Fri Nov 11 13:35:08 2011
;; MSG SIZE  rcvd: 12

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