Re: [DNSOP] CNAME chain length limits

Evan Hunt <each@isc.org> Wed, 27 May 2020 18:08 UTC

Return-Path: <each@isc.org>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 697A53A083B for <dnsop@ietfa.amsl.com>; Wed, 27 May 2020 11:08:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HVZcvBT3DTGm for <dnsop@ietfa.amsl.com>; Wed, 27 May 2020 11:08:47 -0700 (PDT)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EDBB33A083F for <dnsop@ietf.org>; Wed, 27 May 2020 11:08:47 -0700 (PDT)
Received: from bikeshed.isc.org (bikeshed.isc.org [149.20.1.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id F2DE13AB000; Wed, 27 May 2020 18:08:46 +0000 (UTC)
Received: by bikeshed.isc.org (Postfix, from userid 10292) id E73463F2C6; Wed, 27 May 2020 18:08:46 +0000 (UTC)
Date: Wed, 27 May 2020 18:08:46 +0000
From: Evan Hunt <each@isc.org>
To: John R Levine <johnl@taugh.com>
Cc: dnsop@ietf.org
Message-ID: <20200527180846.GA51895@isc.org>
References: <alpine.OSX.2.22.407.2005271341530.35268@ary.qy>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <alpine.OSX.2.22.407.2005271341530.35268@ary.qy>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/8Xd9JholYUNZPmOS8XpXhybL_Do>
Subject: Re: [DNSOP] CNAME chain length limits
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 May 2020 18:08:50 -0000

On Wed, May 27, 2020 at 01:48:32PM -0400, John R Levine wrote:
> is there any consensus as to the maximum CNAME chain length
> that works reliably, and what happens if the chain is too long? Hanging
> seems sub-optimal.

BIND cuts CNAME chains off at 16. As far as I know that was an arbitrarily-
selected value, but it's been in the code since 1999 and so far as I can
recall, no one's complained. The maximum reliable chain length won't be any
longer than that; it might be shorter.

When a chain is too long, I think BIND just returns a response with the 16
CNAMEs it's found so far, and without a final answer. The client can start a
new query from where the response left off, but I would expect most to
treat it as a non-answer.

-- 
Evan Hunt -- each@isc.org
Internet Systems Consortium, Inc.