Re: [dnsext] BADVER/FORMERR

Olafur Gudmundsson <ogud@ogud.com> Sat, 12 November 2011 19:01 UTC

Return-Path: <ogud@ogud.com>
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 652FA21F893C for <dnsext@ietfa.amsl.com>; Sat, 12 Nov 2011 11:01:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.599
X-Spam-Level:
X-Spam-Status: No, score=-106.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 3twRpc8sq3sK for <dnsext@ietfa.amsl.com>; Sat, 12 Nov 2011 11:01:24 -0800 (PST)
Received: from stora.ogud.com (stora.ogud.com [66.92.146.20]) by ietfa.amsl.com (Postfix) with ESMTP id C1EC121F861E for <dnsext@ietf.org>; Sat, 12 Nov 2011 11:01:23 -0800 (PST)
Received: from [IPv6:::1] (nyttbox.md.ogud.com [10.20.30.4]) by stora.ogud.com (8.14.4/8.14.4) with ESMTP id pACJ1KgV017109 for <dnsext@ietf.org>; Sat, 12 Nov 2011 14:01:22 -0500 (EST) (envelope-from ogud@ogud.com)
Message-ID: <4EBEC277.7070306@ogud.com>
Date: Sat, 12 Nov 2011 14:01:11 -0500
From: Olafur Gudmundsson <ogud@ogud.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: dnsext@ietf.org
References: <20111111025007.B689B17061FA@drugs.dv.isc.org>
In-Reply-To: <20111111025007.B689B17061FA@drugs.dv.isc.org>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.72 on 10.20.30.4
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 19:01:24 -0000

On 10/11/2011 21:50, Mark Andrews wrote:
>
> 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?
>

<no hat>
Formerr is perfectly valid return code.
It is the first error you detect and you can stop processing
right then.
(This assumes that the QR=0)

Reasoning: You sent a question that is not a real question
I see nothing in ENDS0 rfcs that say you need to look into the
opt record if the DNS packet is malformed, QR=0 and QDCOUNT=0
is malformed packet IMHO.

	Olafur