X-Scanned-BY: MIMEDefang 2.68 on 10.5.11.27 MIME-Version: 1.0 In-Reply-To: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.0 References: <53F32F63.40306@redhat.com> <20140819182604.GA40936@isc.org> Message-ID: <53F45C6D.7030205@redhat.com> Content-Type: text/plain; charset=UTF-8 X-RT-Original-Encoding: utf-8 Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) by bugs.isc.org (Postfix) with ESMTP id EAF5B2D20571 for ; Wed, 20 Aug 2014 08:29:38 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.redhat.com", Issuer "Red Hat IS CA" (not verified)) by mx.pao1.isc.org (Postfix) with ESMTPS id F11383493A5 for ; Wed, 20 Aug 2014 08:29:36 +0000 (UTC) Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7K8TZdQ002694 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 20 Aug 2014 04:29:35 -0400 Received: from [10.34.4.204] (unused-4-204.brq.redhat.com [10.34.4.204]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7K8TXfe032198 for ; Wed, 20 Aug 2014 04:29:34 -0400 Delivered-To: bind9-bugs@bugs.isc.org Subject: Re: [ISC-Bugs #36907] BIND returns inconsistent data from cache for DS records User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 Return-Path: X-Original-To: bind9-bugs@bugs.isc.org Date: Wed, 20 Aug 2014 10:29:33 +0200 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx.pao1.isc.org To: bind9-bugs@isc.org Content-Transfer-Encoding: 7bit From: Tomas Hozza RT-Message-ID: Content-Length: 1512 On Tue 19 Aug 2014 08:26:05 PM CEST, Evan Hunt via RT wrote: >> It seems like BIND will cache something wrong when doing the first query >> with CD flag set, that makes it to answer inconsistently later on. >> >> This behavior is causing validation to fail when such BIND is used as a >> forwarder. >> >> I'm going to debug BIND to see what's happening. I know it will be like >> looking for needle in a haystack, that's why I'm reporting it to you >> before I have any more clues. >> >> I would appreciate any hints where to look for the cause. > > jsonformat.com is violating protocol. Querying for NS or SOA gets NS > or SOA, but all other data types get CNAME. You're not supposed to have > CNAME at the zone apex, or have it coexist with other data types at the > same node. The nonvalidating query for A put the CNAME record into the > cache, and the nonvalidating query for DS found it -- the cache doesn't > know there's a zone cut there, so it doesn't know the CNAME shouldn't be > used to answer the DS query. I see now. You are right that the domain is misconfigured and violates RFC1034 (section 3.6.2) and RFC1912 (section 2.4). > I don't think there's anything we can do about this without violating > protocol ourselves. jsonformat.com needs to get rid of that CNAME at > the apex. I agree. Thank you very much for your explanation. Regards, -- Tomas Hozza Software Engineer - EMEA ENG Developer Experience PGP: 1D9F3C2D Red Hat Inc. http://cz.redhat.com