Re: [dnsext] BADVER/FORMERR
Mark Andrews <marka@isc.org> Mon, 14 November 2011 22:23 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 12DDF11E82AC for <dnsext@ietfa.amsl.com>; Mon, 14 Nov 2011 14:23:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.495
X-Spam-Level:
X-Spam-Status: No, score=-2.495 tagged_above=-999 required=5 tests=[AWL=0.104, 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 ayAEKYy1kzmD for <dnsext@ietfa.amsl.com>; Mon, 14 Nov 2011 14:23:32 -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 6951611E820F for <dnsext@ietf.org>; Mon, 14 Nov 2011 14:23:30 -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 526975F98A2; Mon, 14 Nov 2011 22:23:10 +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 08722216C6B; Mon, 14 Nov 2011 22:23:09 +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 F0159171B01D; Tue, 15 Nov 2011 09:23:02 +1100 (EST)
To: Marc Lampo <marc.lampo@eurid.eu>
From: Mark Andrews <marka@isc.org>
References: <20111111025007.B689B17061FA@drugs.dv.isc.org> <026401cca2d5$3d91a270$b8b4e750$@lampo@eurid.eu>
In-reply-to: Your message of "Mon, 14 Nov 2011 14:56:42 BST." <026401cca2d5$3d91a270$b8b4e750$@lampo@eurid.eu>
Date: Tue, 15 Nov 2011 09:23:02 +1100
Message-Id: <20111114222302.F0159171B01D@drugs.dv.isc.org>
Cc: 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: Mon, 14 Nov 2011 22:23:33 -0000
In message <026401cca2d5$3d91a270$b8b4e750$@lampo@eurid.eu>, "Marc Lampo" writes: > Hello Mark, > > Interesting path you are following ... > > >From my position (in the Internet with respect to anycast servers), > I get answers you consider not correct from > All of a, h, k and l root-servers.net. > > Additionally, when I query a.root-servers.net. with QDCOUNT == 1, > the rcode becomes indeed BADVERS (extended : value 16), > but amazingly the name servers additionally sets the lowest bit in the > flags : > "non-authenticaded data: Acceptable" (that's the CD bit, if I'm not > mistaken). > > The problem seems to be : "which error precedes which error ?" > (as there is only one possibility for "rcode" in the packet) > So, first detect the QDCOUNT == 0 and return FORMERR because of that, > or, also detect that EDNS type is 255, so : undefined and return BADVERS > because of that. 255 is reserved not wrong. > But what I fail to see is : why send EDNS with value 255 ? I want to send a query which will force the EDNS version on the OPT record to be *changed* by the server at the remote end. There are too many nameservers out there that don't understand EDNS yet still return OPT records from the query. You can see them by changing the EDNS UDP size and seeing the change reflected back to you. I'm also looking to do this with smallest sized packets that I can. > Why not simply a regular EDNS0 ? > Because in that case (only one error), > the authoritative name server can always add EDNS0 in its reply with the > UDP payload > (you are interested in in the first place). > We don't *have* to send an EDNS with bad version number in order to obtain > the information ? > Or do you want to *force* EDNS0 in the reply by sending a query > that results in a Returncode >15 so that EDNS0 is needed to get that > returncode back ? > > > Kind regards, > > Marc > > > -----Original Message----- > From: Mark Andrews [mailto:marka@isc.org] > Sent: 11 November 2011 03:50 AM > To: dnsext@ietf.org > Subject: [dnsext] BADVER/FORMERR > > > 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 > -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@isc.org
- [dnsext] BADVER/FORMERR Mark Andrews
- Re: [dnsext] BADVER/FORMERR Ray Bellis
- Re: [dnsext] BADVER/FORMERR Mark Andrews
- Re: [dnsext] BADVER/FORMERR Ray Bellis
- Re: [dnsext] BADVER/FORMERR David Conrad
- Re: [dnsext] BADVER/FORMERR Ray Bellis
- Re: [dnsext] BADVER/FORMERR Florian Weimer
- Re: [dnsext] BADVER/FORMERR Olafur Gudmundsson
- Re: [dnsext] BADVER/FORMERR Mark Andrews
- Re: [dnsext] BADVER/FORMERR Olafur Gudmundsson
- Re: [dnsext] BADVER/FORMERR Marc Lampo
- Re: [dnsext] BADVER/FORMERR Mark Andrews
- Re: [dnsext] BADVER/FORMERR Dick Franks
- Re: [dnsext] BADVER/FORMERR Ray Bellis
- Re: [dnsext] BADVER/FORMERR Dick Franks
- Re: [dnsext] BADVER/FORMERR Marc Lampo
- Re: [dnsext] BADVER/FORMERR Mark Andrews
- Re: [dnsext] BADVER/FORMERR Michael Sheldon
- Re: [dnsext] BADVER/FORMERR Mark Andrews
- [dnsext] Tao and Re: BADVER/FORMERR Edward Lewis
- Re: [dnsext] Tao and Re: BADVER/FORMERR David Conrad
- Re: [dnsext] BADVER/FORMERR Johan Ihrén
- Re: [dnsext] BADVER/FORMERR Ray Bellis
- Re: [dnsext] Tao and Re: BADVER/FORMERR Dick Franks