Re: [Doh] Suggestion: The final endpoint should be able to temporarly act as a recursive DoH resolver

Ulrich Wisser <ulrich@wisser.se> Wed, 24 October 2018 09:54 UTC

Return-Path: <ulrich@wisser.se>
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 C2BB2127148 for <doh@ietfa.amsl.com>; Wed, 24 Oct 2018 02:54:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=wisser.se
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 ZZFKZFBjb1uX for <doh@ietfa.amsl.com>; Wed, 24 Oct 2018 02:54:11 -0700 (PDT)
Received: from mail-vk1-xa33.google.com (mail-vk1-xa33.google.com [IPv6:2607:f8b0:4864:20::a33]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B79CB130E70 for <doh@ietf.org>; Wed, 24 Oct 2018 02:54:10 -0700 (PDT)
Received: by mail-vk1-xa33.google.com with SMTP id y128-v6so1094779vky.4 for <doh@ietf.org>; Wed, 24 Oct 2018 02:54:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wisser.se; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aD/qc4atSF3pHCy7VUb8qZyMs8sI14BukJfGEUK/IWY=; b=M/rSMHxUGsD+g1f+er2FLyXH6gBLuZV3CadScAnfAgbN/d52hLXEwf2VJcLSEhbo+p K0tbfRrUZyGIkv5gdVT9u+pK2um8/nUC+rcYf0HlVUxB7Gp+5wl5DBDg/d+3FtZRPNRB LY4JLy6VDtxszYZNzigA4DR+3ivTkcAt67i4lxBJ93uJLM+FBGyGbw5BAhnHT5DQkU3A d2EvRpc6N9LXCTgj3c08w5mCK6vodoRYAdaDB/h3rldKsyne7wdzHry55qsmHNn6QPh8 qbheLFgz4mnqnqE31zoKeshLn7yYVXLOWam8qNeQ3Z89CboESLtKKqpReX3llFrGtUIZ iUug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aD/qc4atSF3pHCy7VUb8qZyMs8sI14BukJfGEUK/IWY=; b=OI7WNTOA5xsUuxod+J+A0Tttsgm2edwK/f35Kdnm8Eyb6mafu1/1g+n1FjD5AFVRJT spZLoCkvY1s7GerKjROsh0aPHRL8YOTF/YeqMLnah/SXaOeLAI0elVLHtIMnbSi7dwrc Hkjr9n7SLoGKnwmG3/TQJr37r2QnPpnwrrkL9GSIOkMfd07rmPixxzktAAErhMfoqktG /jCmSt0A2l/WvhUd/8PUWvaMkR3Q5wWyFn9ryXueRE/Hc/qCnaeZ+8AtfijL3+V+xKXK vkTnrUnu7ykYo8c6VNs4w+CJpR5jIQC2zbgGCZrsbNYmobuoUxpD64Aj/SAI57asl8Nb fVgA==
X-Gm-Message-State: AGRZ1gJIyxHno3SQ82X2d5UqqzNFtMwkhJZmGuib23UTP0zjGlXzOj1a Q4vwISNs5hsmOKWPmtWvFO601r6NLCrouj7DQWyMbA==
X-Google-Smtp-Source: AJdET5e+QIyRV/wH4BN2Y8x50SAh1+9DDWFoJoYl0ZQI7xOy/dpZ9DZ7ygrIDJip5wmRfnfY6qthlFUjfB1OQdh4ssg=
X-Received: by 2002:a1f:710:: with SMTP id 16mr224723vkh.42.1540374849548; Wed, 24 Oct 2018 02:54:09 -0700 (PDT)
MIME-Version: 1.0
References: <001801d46b7d$3de32f50$b9a98df0$@sebbe.eu>
In-Reply-To: <001801d46b7d$3de32f50$b9a98df0$@sebbe.eu>
From: Ulrich Wisser <ulrich@wisser.se>
Date: Wed, 24 Oct 2018 11:53:57 +0200
Message-ID: <CAJ9-zoUtsunVNuuMOdhJfsE9qqD9bNW_YA4z3Gr1_zormLku=Q@mail.gmail.com>
To: Sebastian Nielsen <sebastian=40sebbe.eu@dmarc.ietf.org>
Cc: doh@ietf.org
Content-Type: multipart/alternative; boundary="000000000000ba8f270578f677aa"
Archived-At: <https://mailarchive.ietf.org/arch/msg/doh/1v0-BPygHRSqMeqCDXF3qvAy8oU>
Subject: Re: [Doh] Suggestion: The final endpoint should be able to temporarly act as a recursive DoH resolver
X-BeenThere: doh@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 24 Oct 2018 09:54:14 -0000

I can see the reason behind this but would like to point out a few details.

- clients would have to do dnssec validation
- servers would need to not only provide answers to queries, but also the
dnssec chain for the validation
- what should happen with not dnssec signed answers? Dropped? How will the
client get an answer in that case?

Additionally, I think it should be made clearer that an endpoint should
only answer for a known list of domains, as to not get abused by clients.
- what should a server do if a not dnssec signed domain is configured in
it's list?

/Ulrich

Sebastian Nielsen <sebastian=40sebbe.eu@dmarc.ietf.org> schrieb am Mi., 24.
Okt. 2018 um 11:38 Uhr:

> I have a suggestion for extending the DoH specification:
>
>
>
> The final endpoint, should be able to act as a authorative and sometimes
> recursive DoH resolver if it has support for the DoH protocol, during the
> normal HTTPS connection.
>
>
>
> This could mean that once you reach a WWW server, theres no need for
> looking up domains like static.example.org and such since the result of
> such domains could be returned by the original HTTPS server over the same
> connection as the website traffic goes over.
>
> If the HTTPS server has other domains for example
> ads.thirdparty-example.org as links it could return those aswell but only
> if they are DNSSEC signed, and for security, a DoH client should only
> accept results for a third-party domain if the result is DNSSEC signed.
>
>
>
> To avoid abuse, a WWW server supporting this extension should only allow
> queries for its own domain and subdomains, and also queries for any
> resources it has been configured to resolve (and this type of configuration
> could be done automatically by for example a script on the web server that
> adds all external links to its ACL)
>
>
>
> This would mean an WWW server serving content for itself and also have
> links to ads.thirdparty-example.org could have those 2 domains cached in
> its internal DoH resolver and resolve for those, thus once you reach a
> webpage’s server, you no longer need to talk to your recursive DoH serverl,
> which also increases privacy.
>
>
>
> This could lead to much faster response times aswell, as the WWW server
> would have the information about all its linked hosts permanently cached
> and updated regularly.
>
> Think like OCSP stapling but for DNS responses instead.
>
>
>
>
>
> Best regard, Sebastian Nielsen
> _______________________________________________
> Doh mailing list
> Doh@ietf.org
> https://www.ietf.org/mailman/listinfo/doh
>
-- 
Ulrich Wisser
ulrich@wisser.se