Re: [dnsoverhttp] Survey of DNS over HTTP

Ted Hardie <ted.ietf@gmail.com> Fri, 16 September 2016 16:26 UTC

Return-Path: <ted.ietf@gmail.com>
X-Original-To: dnsoverhttp@ietfa.amsl.com
Delivered-To: dnsoverhttp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6E28912B2BB for <dnsoverhttp@ietfa.amsl.com>; Fri, 16 Sep 2016 09:26:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level:
X-Spam-Status: No, score=-2.698 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 LruwhtHANoAP for <dnsoverhttp@ietfa.amsl.com>; Fri, 16 Sep 2016 09:26:00 -0700 (PDT)
Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com [IPv6:2607:f8b0:4003:c06::22d]) (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 9351712B24A for <dnsoverhttp@ietf.org>; Fri, 16 Sep 2016 09:26:00 -0700 (PDT)
Received: by mail-oi0-x22d.google.com with SMTP id r126so117833427oib.0 for <dnsoverhttp@ietf.org>; Fri, 16 Sep 2016 09:26:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=P7QWRJOIEf6DEE/UoiSJuRaE996bs27oIoCl0RmMH64=; b=KD3ARBgyucd/WVmncXC6GlD/Mhic6Kc9AvfOPiANvCpTvPy3lW3UVBIypMF4RKUOjH mPzrq+TlUtI+Epqg08FvHhja0RMTSMiFJ2lf5jujfDMuxGAGhsDqwMAFA/sc9Mt64G5I +kNvyjEhD7YKkp/mhhGXA/U+S+WDD7S6D6IeAtmv6f+P7tR2YYdThxoSv4SHUnk4YvRv +h7iaBVIxw5x13SHenV68fDfMW+1fUOI8k3awhgNxU2TstyticxCeYd7us7Hoto4VAQ0 psZhOYFj36hPwLvH7xc8Q48m60Z9mZzy1mUC0/5Pm3Ep5QyK8qjt75JHRDsCWEUeavL4 D7bA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=P7QWRJOIEf6DEE/UoiSJuRaE996bs27oIoCl0RmMH64=; b=SL4p6McyUuM3B7U3ZE7TBEDZ7rf4sU98sMERePMA3I/mpfkp+t160fVBFoHvPXRRno H3f7WgqiXXCIxfTSHUAkJ5teX5MDEWPe6QxXeOAPlGCcUo7qkPlf0iilApse5pnwgK9q A4bjuTsU5TkrV2aD50h+FjcDXxwKOlbFuRG8IBDFfUXsv0qtzwJ8IyeZBZEp0U7iCKXW 8y5W0AK0qXb0oJn3Y4oKr9bjgO9otNIO87XOwtZ/YJGIyOP3lpZ1aSvnnCSL+S5xpyF0 d9INEsreV5YDq56fGjtH30ciYJ3bo2FcsKP3s/DlZ9fFZeobYcOa0EP5Ka3kDV5LyOY7 PNRg==
X-Gm-Message-State: AE9vXwMFdG7A8KhFKhukCBYgKuwO0kXP2BgGAp4ppcWbN6eoNY7oLXkmqZ6NL9hEOQyI+bUVj7cPiwA1kmIiYg==
X-Received: by 10.157.60.151 with SMTP id z23mr13337784otc.126.1474043159661; Fri, 16 Sep 2016 09:25:59 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.202.79.78 with HTTP; Fri, 16 Sep 2016 09:25:29 -0700 (PDT)
In-Reply-To: <20160916120958.1d9c0a81@pallas.home.time-travellers.org>
References: <20160914150428.2bc82011@pallas.home.time-travellers.org> <CA+9kkMAXKUo-H1==pyVjo7wt6RQcs8hQjHvgk=kLPb6+DERkoQ@mail.gmail.com> <20160916120958.1d9c0a81@pallas.home.time-travellers.org>
From: Ted Hardie <ted.ietf@gmail.com>
Date: Fri, 16 Sep 2016 09:25:29 -0700
Message-ID: <CA+9kkMD=USVBYWWtQdNMQ_kBiQ=Ruv57hBKS2OPtkmwcHKTKVQ@mail.gmail.com>
To: Shane Kerr <shane@time-travellers.org>
Content-Type: multipart/alternative; boundary=94eb2c1923c6ea5099053ca26ac7
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsoverhttp/FEeBMsaoM8QSh3wGs782HNlUSAU>
Cc: dnsoverhttp@ietf.org
Subject: Re: [dnsoverhttp] Survey of DNS over HTTP
X-BeenThere: dnsoverhttp@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Discussion of DNS over HTTP <dnsoverhttp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsoverhttp>, <mailto:dnsoverhttp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsoverhttp/>
List-Post: <mailto:dnsoverhttp@ietf.org>
List-Help: <mailto:dnsoverhttp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsoverhttp>, <mailto:dnsoverhttp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 16 Sep 2016 16:26:02 -0000

On Fri, Sep 16, 2016 at 3:09 AM, Shane Kerr <shane@time-travellers.org>
wrote:

> Ted,
>
> At 2016-09-15 14:59:57 -0700
> Ted Hardie <ted.ietf@gmail.com> wrote:
>
> > Thanks for the doc.  One approach to add is using dns URIs as the target
> of
> > HTTP methods, returning the dns data using the relevant mime type.  In
> that
> > approach, you send the message over HTTP(S) with something like
> >
> > GET  dns:[//authority/]domain[?CLASS=class;TYPE=type]
> >
> > (See RFC 4501 for the full set of permitted syntax for DNS URIs)
> >
> > and return either application/dns or text/dns records for the result (See
> > RFC 4027 for the specification of the MIME types).
>
>
I'm not sure that I understand the syntax. Can you give some examples?
>
> Sure.

GET dns:example.com?TYPE=AAAA

Would ask for the AAAA record for example.com, using whatever means the
HTTP server had for supplying the record.

GET dns://8.8.8.8/example.com?TYPE=AAAA

Would ask the server to consult 8.8.8.8 and return the AAAA record it
supplied.

(The URI scheme specified in RFC 4501 allows you to specify a CLASS, but
defaults to IN, which is why it's not supplied in the examples).

You can also use URI escaping to reference IDNs:

GET dns:www.example.%E4%B8%AD%E5%9C%8B?TYPE=TEXT

regards,

Ted




> Cheers,
>
> --
> Shane
>