Re: [Doh] A question on the mix of DNS and HTTP semantics

Stephane Bortzmeyer <bortzmeyer@nic.fr> Sun, 18 March 2018 16:43 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 86B0412946D for <doh@ietfa.amsl.com>; Sun, 18 Mar 2018 09:43:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 Elas9GX45b6e for <doh@ietfa.amsl.com>; Sun, 18 Mar 2018 09:43:24 -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 425FE128961 for <doh@ietf.org>; Sun, 18 Mar 2018 09:43:24 -0700 (PDT)
Received: by ayla.bortzmeyer.org (Postfix, from userid 10) id E2173A05CF; Sun, 18 Mar 2018 17:43:22 +0100 (CET)
Received: by godin (Postfix, from userid 1000) id C86A1EC0B87; Sun, 18 Mar 2018 17:43:07 +0100 (CET)
Date: Sun, 18 Mar 2018 16:43:07 +0000
From: Stephane Bortzmeyer <bortzmeyer@nic.fr>
To: Ted Hardie <ted.ietf@gmail.com>
Cc: doh@ietf.org
Message-ID: <20180318164307.GB6724@laperouse.bortzmeyer.org>
References: <CA+9kkMB7awRfW9jUmY9Q-1p+w3VLtpG5DxhF3s7Q58nEMZeX3w@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CA+9kkMB7awRfW9jUmY9Q-1p+w3VLtpG5DxhF3s7Q58nEMZeX3w@mail.gmail.com>
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/3PMrf2KjY3PhQboFAMp0qy0fyUI>
Subject: Re: [Doh] A question on the mix of DNS and HTTP semantics
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: Sun, 18 Mar 2018 16:43:25 -0000

On Sat, Mar 17, 2018 at 10:42:08AM -0700,
 Ted Hardie <ted.ietf@gmail.com>; wrote 
 a message of 182 lines which said:

> Similarly, it was not clear to me whether a response like 451 could
> contain a UDP wireformat body and, if so, what it would be.  If it
> contains no body, the DNS implementation might continue attempting
> to query for the information.  If it contains a REFUSED RCODE, in
> contrast, it would see a policy-based error.

That's an interesting example. If a DoH server replies 451, does it
mean that access to this DoH service is blocked, for policy reasons,
or that access to this specific DNS data is blocked, for policy
reasons? In other words, can a HTTP response from a DoH server depend
on the QNAME? (Or on the tuple {QCLASS, QTYPE, QNAME}?)

May be a way to address this issue would be to say "HTTP status code
depends only on the HTTP request and server, never (MUST NOT) on the
DNS question"?