Re: [dnsext] CNAME/DNAME and NXDOMAIN

Nicholas Weaver <nweaver@icsi.berkeley.edu> Mon, 14 November 2011 19:17 UTC

Return-Path: <nweaver@icsi.berkeley.edu>
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 BEA6F11E836F for <dnsext@ietfa.amsl.com>; Mon, 14 Nov 2011 11:17:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.534
X-Spam-Level:
X-Spam-Status: No, score=-2.534 tagged_above=-999 required=5 tests=[AWL=0.065, 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 VYHGHlr318fd for <dnsext@ietfa.amsl.com>; Mon, 14 Nov 2011 11:17:50 -0800 (PST)
Received: from rock.ICSI.Berkeley.EDU (rock.ICSI.Berkeley.EDU [192.150.186.19]) by ietfa.amsl.com (Postfix) with ESMTP id 1161F11E836B for <dnsext@ietf.org>; Mon, 14 Nov 2011 11:17:50 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by rock.ICSI.Berkeley.EDU (Postfix) with ESMTP id E14FD2C4026; Mon, 14 Nov 2011 11:17:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at ICSI.Berkeley.EDU
Received: from rock.ICSI.Berkeley.EDU ([127.0.0.1]) by localhost (maihub.ICSI.Berkeley.EDU [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MKJF6KlVHRBB; Mon, 14 Nov 2011 11:17:49 -0800 (PST)
Received: from gala.icir.org (gala [192.150.187.49]) (Authenticated sender: nweaver) by rock.ICSI.Berkeley.EDU (Postfix) with ESMTP id 4C6012C4002; Mon, 14 Nov 2011 11:17:49 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1251.1)
Content-Type: text/plain; charset="us-ascii"
From: Nicholas Weaver <nweaver@icsi.berkeley.edu>
In-Reply-To: <20111114190606.GA7540@isc.org>
Date: Mon, 14 Nov 2011 11:17:49 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <35209477-7CA0-4459-BDF1-8917536A6077@icsi.berkeley.edu>
References: <a06240803cad9af9e1e04@[192.168.128.112]> <20111104231715.AA38F16AD6F6@drugs.dv.isc.org> <4EC0F0A3.1090501@nlnetlabs.nl> <20111114190606.GA7540@isc.org>
To: Evan Hunt <each@isc.org>
X-Mailer: Apple Mail (2.1251.1)
Cc: Edward Lewis <Ed.Lewis@neustar.biz>, dnsext@ietf.org
Subject: Re: [dnsext] CNAME/DNAME and NXDOMAIN
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 19:17:50 -0000

On Nov 14, 2011, at 11:06 AM, Evan Hunt wrote:

>>> We (ISC) have looked at not following CNAME records when generating
>>> such replies.  We already discard the rest of the response and
>>> requery for the target of the CNAME.
>> 
>> So you would query the same machine, despite that server is giving you a
>> chain?
> 
> A server may claim, through misconfiguration or malice, to
> be authoritative for the target of a CNAME when it isn't.
> For example, suppose 'cname.example.com' points to
> 'target.example.com', but 'target.example.com' is actually a
> zone cut and is delegated to some other server entirely.  The
> only way to find out is to with a followup query.

There's three main themes we've seen with netalyzr:

a)  Requery regardless


b)  Accept when the name is internal or equal (eg, the system is authoritative for foo.com, and the cname refers to anything.{optional}.foo.com)


c)  Accept when the server has already been identified as the authority for the target domain (eg, the system is authoritative for foo.com AND bar.com, the resolver knows this by previous queries, and the CNAME is in the form example.foo.com CNAME example.bar.com, example.bar.com A 1.2.3.4).

Notably Google Public DNS does C.