Re: [Add] [Ext] Draft Posting: CNAME Discovery of Local DoH Resolvers

Eric Rescorla <ekr@rtfm.com> Sat, 27 June 2020 15:50 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: add@ietfa.amsl.com
Delivered-To: add@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 556843A079D for <add@ietfa.amsl.com>; Sat, 27 Jun 2020 08:50:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.com
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 SoRvdxQpgFoh for <add@ietfa.amsl.com>; Sat, 27 Jun 2020 08:50:16 -0700 (PDT)
Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 849983A0796 for <add@ietf.org>; Sat, 27 Jun 2020 08:50:16 -0700 (PDT)
Received: by mail-lj1-x22a.google.com with SMTP id n23so13397468ljh.7 for <add@ietf.org>; Sat, 27 Jun 2020 08:50:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rFh0g5oho7Bt9pzVDEZ+0bfVNleRkVhwR+ZqAJQ7yrc=; b=OEFE39SGXaMe0OvdAH/R706O9a56+YFkNK4EGMGqSsdcogHGsiCizD4tRCi1958PXO Ye3T8SSZw4STXNUjgm3BTSnCvkkdAsKhx65u5laplj/WElPjEZMymBnUHcdBPowmoUsv A71P6IJfhrbh+cLaagu7I5z5YwGSuWKNzvQBsHwb9Qf1a4XP3lTaVmJwfjS6lAJLuKyC LhHEI12SVn+aoMgjhRAkY32nOw3wwfi/GAebpINjh3yTKjeB4GvIx6MQ16w39Ton6Yi1 phEAmA8LQfDphdTHFCVoelQSnWTvA3aFRw7nzSt+sPusjVyhmN+vk6ujHalNSZNesqO6 Jthw==
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=rFh0g5oho7Bt9pzVDEZ+0bfVNleRkVhwR+ZqAJQ7yrc=; b=Itis+9+PNou58LDd0WkZ+ZYybosSnY3WRnIdKiJObCj6AqxmRdUzyW6/a0RH/tzepe U80m4/E8/gy360sPd5wJ0luUK3oKDVmwKyoi7LUEfdCWicllyagSuyQFrUChoY9ymspx ButeyW++WtmLZEJGJ/s5MAgvenbfh1A07HJtvkqjNrmZvgkt+A7aWWVJyTNTnwVet1lL XTmWSoMlwbfiKruF/tgcsSQTclVEB9lUDMWgHvTCF+oO2KM1kKdf2VXLOxQvhwUiZf20 g8r4FPA2otTDmCca5viAlNgNjLYNdK/PeXx9gLM1PUMpDBAsIjGm4OU6GIqBu0jGYM/X Yf/g==
X-Gm-Message-State: AOAM531C2GoCzqV6MtOJATZW40867q0qeVUyqzw3Y8iPRbneV5mPLq4V feLBib6LT39cLH9Ys6AWgChf0tP0WqM3qcAu1ZbtOAFY9RE=
X-Google-Smtp-Source: ABdhPJxN+OH7envfQiGgvXT8x1kO+dcTDydyE+d8bdvtD87HMbjoPSiXzBwXkbZjNw9JpyOosO30mlls/C2PhyO+js4=
X-Received: by 2002:a2e:3311:: with SMTP id d17mr1761746ljc.13.1593273014617; Sat, 27 Jun 2020 08:50:14 -0700 (PDT)
MIME-Version: 1.0
References: <CABcZeBPTkWeB40wpTowKvEJ-gXA3AL2e-BE+C_FC7Js7-D0DZQ@mail.gmail.com> <0478F516-47AE-419E-B95D-F546A2F12ABB@icann.org> <CABcZeBPMrn_H8EQfw3ksLnsMJd21=BTZ3h29g-rMnKO2SUJOFw@mail.gmail.com> <8FC68464-A7B8-48C9-BDDC-333207C16FD4@icann.org>
In-Reply-To: <8FC68464-A7B8-48C9-BDDC-333207C16FD4@icann.org>
From: Eric Rescorla <ekr@rtfm.com>
Date: Sat, 27 Jun 2020 08:49:38 -0700
Message-ID: <CABcZeBNKHHO=n68tj2DMGQkRaZQzbZE=DxQBjhH-wzJueRykZw@mail.gmail.com>
To: Paul Hoffman <paul.hoffman@icann.org>
Cc: ADD Mailing list <add@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000111fa705a912c8d3"
Archived-At: <https://mailarchive.ietf.org/arch/msg/add/LD3bJl-3ALEIm0-DeQuK931r-js>
Subject: Re: [Add] [Ext] Draft Posting: CNAME Discovery of Local DoH Resolvers
X-BeenThere: add@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Applications Doing DNS <add.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/add>, <mailto:add-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/add/>
List-Post: <mailto:add@ietf.org>
List-Help: <mailto:add-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/add>, <mailto:add-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Jun 2020 15:50:18 -0000

On Sat, Jun 27, 2020 at 8:04 AM Paul Hoffman <paul.hoffman@icann.org> wrote:

> On Jun 26, 2020, at 5:36 PM, Eric Rescorla <ekr@rtfm.com> wrote:
> >> Point 1 feels overstated. The clients we are talking about here are
> modern web browsers, which can clearly write whatever they want in their
> DNS queries.
> >>
> > "clearly" is doing a lot of work here. Sure, it's just software so we
> could do this. However, Firefox uses the system resolver and in particular
> calls getaddrinfo(). So while yes, we could in theory write our own
> resolver or plumb to the OS-specific more flexible interfaces (e.g.
> res_query()) up to the part of the code that needs this information. Hence,
> as I said, "somewhat more difficult (though not impossible)".
>
> I assumed that Firefox was using an internal mechanism for creating the
> DNS queries in the draft.


No.


How can Firefox send a CNAME query if it "uses the system resolver and in
> particular calls getaddrinfo()"? I admit weakness here, but I thought that
> getaddrinfo() doesn't let you specify the RRtype, just "give me an address"
> where "address" is defintely not "a domain name".
>


https://linux.die.net/man/3/getaddrinfo

"If *hints.ai_flags* includes the *AI_CANONNAME* flag, then the
*ai_canonname* field of the first of the *addrinfo* structures in the
returned list is set to point to the official name of the host."




> If Firefox has the means of sending a constructed CNAME query and process
> the response, shouldn't it also (ahem) clearly have the means of sending a
> constructed TBD1 query and process the response?'''
>

We do not send a raw query.

-Ekr



> --Paul Hoffman