Re: [DNSOP] ANAME loop detection

Matthijs Mekking <matthijs@pletterpet.nl> Mon, 08 July 2019 09:47 UTC

Return-Path: <matthijs@pletterpet.nl>
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 6C86612010F for <dnsop@ietfa.amsl.com>; Mon, 8 Jul 2019 02:47:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.597
X-Spam-Level:
X-Spam-Status: No, score=-2.597 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=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 R9ahue0aqePQ for <dnsop@ietfa.amsl.com>; Mon, 8 Jul 2019 02:47:06 -0700 (PDT)
Received: from lb1-smtp-cloud9.xs4all.net (lb1-smtp-cloud9.xs4all.net [194.109.24.22]) (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 4D0771200FB for <dnsop@ietf.org>; Mon, 8 Jul 2019 02:47:06 -0700 (PDT)
Received: from [IPv6:2001:980:4eb1:1:519:b413:349b:975] ([IPv6:2001:980:4eb1:1:519:b413:349b:975]) by smtp-cloud9.xs4all.net with ESMTPSA id kQEehoBjCuEBxkQEfh0I58; Mon, 08 Jul 2019 11:47:04 +0200
To: Jan Včelák <jv@fcelda.cz>, dnsop <dnsop@ietf.org>
References: <CAM1xaJ9txy98s5Y+Sq5T5N1KaD-LvtrDTut=mUomjHFwTvWnDg@mail.gmail.com> <a4137531-7641-34f2-6443-1cd904b485e3@pletterpet.nl> <CAAiTEH8v4MqpOvvKzLCeY=3NL8UrY5=LehxXy_JVtAt48muMrw@mail.gmail.com> <38b61acb-d223-2d4e-bfd4-02cee87341a5@pletterpet.nl> <CAM1xaJ8Apv6PyyQ=Mv_G8NQPVyxG3Ni_WKeBBmEveX+SHZna=A@mail.gmail.com>
From: Matthijs Mekking <matthijs@pletterpet.nl>
Message-ID: <c1c5ab0e-5d8e-01fe-03da-01d578e5b877@pletterpet.nl>
Date: Mon, 08 Jul 2019 11:47:00 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2
MIME-Version: 1.0
In-Reply-To: <CAM1xaJ8Apv6PyyQ=Mv_G8NQPVyxG3Ni_WKeBBmEveX+SHZna=A@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-CMAE-Envelope: MS4wfA/zoRR6oO+n+mdT8/DOJoliLnIBaG8FebMszfldTeh2VaZOKhEeebthR7xn9bUz7DU14dSrzOI9+JhRMQWTnwhM9n9DpQJWs//gQDv2+lpI2o/PLLaO 3Ehj2KTHdZUpWDwofGPU1NKn/4KO8AyCEvtNeoIhNOC4NAx7SUxICOvt76Au1bHe4XAEYyS6KrFUykL6ZQKgDNTlRodU+Q4I4dZGeF2+yFkvUJkBKoQM/a08 K9QJ8BZeWo0kppZSW9CS6wUaxGU9IDGrHRGJXmyfNgk=
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/X5S2x3mICukR3Hu11Xyq1o_7a-E>
Subject: Re: [DNSOP] ANAME loop detection
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: Mon, 08 Jul 2019 09:47:10 -0000

Jan,

On 7/8/19 11:32 AM, Jan Včelák wrote:
> On Thu, Jul 4, 2019 at 4:55 PM Matthijs Mekking wrote:
>> On 7/4/19 2:32 PM, Matthew Pounsett wrote:
>>> I would say they should rely on that.  Why shouldn't they?  Isn't our
>>> goal to get downstream servers to adopt the extension and do their own
>>> lookup?  The server-side lookups and sibling records are bolt-ons to
>>> handle the adoption period.  Remember, this record is geared toward
>>> customers of CDNs being able to do get similar behaviour to:
>>> www.example.com <http://www.example.com>. IN CNAME webfarm.cdn.net
>>> <http://webfarm.cdn.net>.
>>> at the apex of example.com <http://example.com>.  That was the original
>>> problem we're trying to solve.  I read your statement above about "the
>>> service they provide their customers" being about the CDN resolving
>>> webfarm.cdn.net <http://webfarm.cdn.net>, which most CDNs can already do
>>> within their own infrastructure.
>>
>> I am talking about DNS providers that perform CNAME at the Apex like
>> features: a customer goes to them and opts in to this feature. Such a
>> provider wants to make sure that it is providing the behavior the
>> customer expects and thus wants to make sure it hands out appropriate
>> addresses.
>>
>> Also what is wrong with an authoritative server already giving out more
>> optimal answers than just the ANAME and sibling address records?
> 
> I also understand the sibling address records only as a mean to gap
> the adoption period. It should not be a feature.

It's not a feature, its an optimization: If the requester receives a No
Data response to its ANAME query, he can finalize the target lookup with
an address query to the last target in the chain.


> If the DNS provider (i.e. authoritative server) wanted to perform some
> magic to provide more optimal answer than the resolver could get by
> resolving the ANAME then there is no point of involving ANAME. You can
> perform the magic with A/AAAA already.

Not more optimal than the resolver, but more optimal than the default
sibling address records that are put into the zone.  The benefit of that
is that the resolver has more sane addresses to hand out to the client
in case it is unable to perform ANAME target lookup (due to timeout for
example).


>>> Sending out the sibling records in the presence of this EDNS option
>>> might make sense as a backup, since that is low effort on the part of
>>> the authoritative, but a declaration by the querying server that it
>>> understands ANAME and is prepared to do its own lookups should be
>>> trusted by the authoritative server, and it should not to recursive
>>> lookups.  To take that further, why would the authoritative server
>>> believe that the results of any lookups it does would not be thrown away?
>>>
>>> This EDNS option should also be useful to recursive servers that
>>> understand ANAME, and are planning to do their own ANAME resolution.
>>> They can get their answer from the authoritative server much faster this
>>> way.
>>
>> I am not sure if that is true. Perhaps if you do ANAME target lookup on
>> the fly yes, but I think most implementations will have a side process
>> that does the target lookup and the query resolution can get the target
>> addresses just from cache.
> 
> This is speculative. The conditions may be very different in each setup.
> 
>>> This is also a way to measure adoption.  As the ratio of "EDNS do not
>>> follow ANAME" queries to total ANAME queries approaches 1.0, we know
>>> that adoption has been successful.  Maybe we could even begin to
>>> deprecate authoritative resolution (of ANAMEs) at that point, and begin
>>> to get back to something that looks more like plain CNAME.
> 
> This probably makes me like the option #1 the most.
> 
> Jan
>