Re: [Doh] meta qtypes

Stephane Bortzmeyer <bortzmeyer@nic.fr> Mon, 19 March 2018 09:18 UTC

Return-Path: <bortzmeyer@nic.fr>
X-Original-To: doh@ietfa.amsl.com
Delivered-To: doh@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 40EDC126DD9 for <doh@ietfa.amsl.com>; Mon, 19 Mar 2018 02:18:58 -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, 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 ziqz_EIQ746d for <doh@ietfa.amsl.com>; Mon, 19 Mar 2018 02:18:57 -0700 (PDT)
Received: from ayla.bortzmeyer.org (ayla.bortzmeyer.org [92.243.4.211]) (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 4C6A4124BFA for <doh@ietf.org>; Mon, 19 Mar 2018 02:18:57 -0700 (PDT)
Received: by ayla.bortzmeyer.org (Postfix, from userid 10) id F1B85A05CF; Mon, 19 Mar 2018 10:18:55 +0100 (CET)
Received: by godin (Postfix, from userid 1000) id 4D47AEC0BB8; Mon, 19 Mar 2018 10:16:34 +0100 (CET)
Date: Mon, 19 Mar 2018 09:16:34 +0000
From: Stephane Bortzmeyer <bortzmeyer@nic.fr>
To: Patrick McManus <pmcmanus@mozilla.com>, DoH WG <doh@ietf.org>
Message-ID: <20180319091634.GC16151@laperouse.bortzmeyer.org>
References: <20180318143811.bn5kwr7oqo2ux6qm@miek.nl> <CAOdDvNoNN98zOuPAepS0=0Nt06+UAGV1ZCrxs0J2TzQaVnJz8w@mail.gmail.com> <20180318190804.5mgxarazepfut56i@miek.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20180318190804.5mgxarazepfut56i@miek.nl>
X-Transport: UUCP rules
X-Operating-System: Ubuntu 16.04 (xenial)
X-Charlie: Je suis Charlie
User-Agent: Mutt/1.5.24 (2015-08-30)
Archived-At: <https://mailarchive.ietf.org/arch/msg/doh/ASSVcSHeK8mJ2nVT75noi3Bd1uo>
Subject: Re: [Doh] meta qtypes
X-BeenThere: doh@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: DNS Over HTTPS <doh.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/doh>, <mailto:doh-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/doh/>
List-Post: <mailto:doh@ietf.org>
List-Help: <mailto:doh-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/doh>, <mailto:doh-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 19 Mar 2018 09:18:58 -0000

On Sun, Mar 18, 2018 at 07:08:04PM +0000,
 Miek Gieben <miek@miek.nl> wrote 
 a message of 31 lines which said:

> I think this draft should say "MUST not cache these responses".

I have a less radical proposal:

"DoH servers SHOULD return a Cache-Control header (RFC 7234, section
5.2.2). They MAY send "Cache-control: no-cache" in all cases [if
they're lazy]. For positive
answers (ANCOUNT>0), if the DoH server returns "Cache-control:
max-age=N", the maximum age MUST be the TTL of the answer seen by the
Doh server. For negative answers (NXDOMAIN), if the DoH server returns "Cache-control:
max-age=N", the maximum age MUST be calculated from the SOA record of
the zone (RFC 2308, section 3) [note it allows a server to return
"Cache-control: no-cache" only for NXDOMAIN]"