<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!-- generated by https://github.com/cabo/kramdown-rfc version 1.6.15 (Ruby 3.1.2) -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-ietf-add-svcb-dns-07" category="std" consensus="true" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.13.1 -->
  <front>
    <title abbrev="SVCB for DNS">Service Binding Mapping for DNS Servers</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-add-svcb-dns-07"/>
    <author initials="B." surname="Schwartz" fullname="Benjamin Schwartz">
      <organization>Google LLC</organization>
      <address>
        <email>bemasc@google.com</email>
      </address>
    </author>
    <date year="2022" month="August" day="12"/>
    <area>General</area>
    <workgroup>add</workgroup>
    <keyword>Internet-Draft</keyword>
    <abstract>
      <t>The SVCB DNS resource record type expresses a bound collection of endpoint metadata, for use when establishing a connection to a named service.  DNS itself can be such a service, when the server is identified by a domain name.  This document provides the SVCB mapping for named DNS servers, allowing them to indicate support for encrypted transport protocols.</t>
    </abstract>
    <note removeInRFC="true">
      <name>Discussion Venues</name>
      <t>Discussion of this document takes place on the
  ADD Working Group mailing list (add@ietf.org),
  which is archived at <eref target="https://mailarchive.ietf.org/arch/browse/add/"/>.</t>
      <t>Source for this draft and an issue tracker can be found at
  <eref target="https://github.com/bemasc/svcb-dns"/>.</t>
    </note>
  </front>
  <middle>
    <section anchor="introduction">
      <name>Introduction</name>
      <t>The SVCB resource record type <xref target="SVCB"/> provides clients with information about how to reach alternative endpoints for a service, which may have improved performance or privacy properties.  The service is identified by a "scheme" indicating the service type, a hostname, and optionally other information such as a port number.  A DNS server is often identified only by its IP address (e.g., in DHCP), but in some contexts it can also be identified by a hostname (e.g., "NS" records, manual resolver configuration) and sometimes also a non-default port number.</t>
      <t>Use of the SVCB resource record type requires a mapping document for each service type (<xref section="2.4.3" sectionFormat="of" target="SVCB"/>), indicating how a client for that service can interpret the contents of the SVCB SvcParams.  This document provides the mapping for the "dns" service type, allowing DNS servers to offer alternative endpoints and transports, including encrypted transports like DNS over TLS (DoT) <xref target="RFC7858"/>, DNS over HTTPS (DoH) <xref target="RFC8484"/>, and DNS over QUIC (DoQ) <xref target="RFC9250"/>.</t>
      <t>The SVCB mapping described in this document is intended as a general-purpose baseline.  Subsequent specifications will adapt this mechanism as needed to support specific configurations (e.g., for communication between stub and recursive resolvers).</t>
    </section>
    <section anchor="conventions-and-definitions">
      <name>Conventions and Definitions</name>
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
"SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/>
when, and only when, they appear in all capitals, as shown here.</t>
    </section>
    <section anchor="identity">
      <name>Identities and Names</name>
      <t>SVCB record names (i.e., QNAMEs) for DNS services are formed using Port-Prefix Naming (<xref section="2.3" sectionFormat="of" target="SVCB"/>), with a scheme of "dns".  For example, SVCB records for a DNS service identified as <tt>dns1.example.com</tt> would be queried at <tt>_dns.dns1.example.com</tt>.</t>
      <t>In some use cases, the name used for retrieving these DNS records is different from the server identity used to authenticate the secure transport.  To distinguish between these, this document uses the following terms:</t>
      <ul spacing="normal">
        <li>Binding authority - The service name (<xref section="1.4" sectionFormat="of" target="SVCB"/>) and optional port number used as input to Port-Prefix Naming.</li>
        <li>Authentication name - The name used for secure transport authentication.  This MUST be a DNS hostname or a literal IP address.  Unless otherwise specified, this is the service name from the binding authority.</li>
      </ul>
      <section anchor="special-case-non-default-ports">
        <name>Special case: non-default ports</name>
        <t>Normally, a DNS service is identified by an IP address or a domain name.  When connecting to the service using unencrypted DNS over UDP or TCP, clients use the default port number for DNS (53).  However, in rare cases, a DNS service might be identified by both a name and a port number.  For example, the "<tt>dns:</tt>" URI scheme <xref target="DNSURI"/> optionally includes an authority, comprised of a host and a port number (with a default of 53).  DNS URIs normally omit the authority, or specify an IP address, but a hostname and non-default port number are allowed.</t>
        <t>When the binding authority specifies a non-default port number, Port-Prefix Naming places the port number in an additional prefix on the name.  For example, if the binding authority is "<tt>dns1.example.com:9953</tt>", the client would query for SVCB records at <tt>_9953._dns.dns1.example.com</tt>.  If two DNS services operating on different port numbers provide different behaviors, this arrangement allows them to preserve the distinction when specifying alternative endpoints.</t>
      </section>
    </section>
    <section anchor="applicable-existing-svcparamkeys">
      <name>Applicable existing SvcParamKeys</name>
      <section anchor="alpn">
        <name>alpn</name>
        <t>This key indicates the set of supported protocols (<xref section="6.1" sectionFormat="of" target="SVCB"/>).  There is no default protocol, so the "<tt>no-default-alpn</tt>" key does not apply, and the "<tt>alpn</tt>" key MUST be present.</t>
        <t>If the protocol set contains any HTTP versions (e.g., "h2", "h3"), then the record indicates support for DoH, and the "dohpath" key MUST be present (<xref target="dohpath"/>).  All keys specified for use with the HTTPS record are also permissible, and apply to the resulting HTTP connection.</t>
        <t>If the protocol set contains protocols with different default ports, and no port key is specified, then protocols are contacted separately on their default ports.  Note that in this configuration, ALPN negotiation does not defend against cross-protocol downgrade attacks.</t>
      </section>
      <section anchor="port">
        <name>port</name>
        <t>This key is used to indicate the target port for connection (<xref section="6.2" sectionFormat="of" target="SVCB"/>).  If omitted, the client SHALL use the default port number for each transport protocol (853 for DoT and DoQ, 443 for DoH).</t>
        <t>This key is automatically mandatory for this binding.  This means that a client that does not respect the "<tt>port</tt>" key MUST ignore any SVCB record that contains this key.  (See <xref section="7" sectionFormat="of" target="SVCB"/> for the definition of "automatically mandatory".)</t>
        <t>Support for the "<tt>port</tt>" key can be unsafe if the client has implicit elevated access to some network service (e.g., a local service that is inaccessible to remote parties) and that service uses a TCP-based protocol other than TLS.  A hostile DNS server might be able to manipulate this service by causing the client to send a specially crafted TLS SNI or session ticket that can be misparsed as a command or exploit.  To avoid such attacks, clients SHOULD NOT support the "<tt>port</tt>" key unless one of the following conditions applies:</t>
        <ul spacing="normal">
          <li>The client is being used with a DNS server that it trusts not to attempt this attack.</li>
          <li>The client is being used in a context where implicit elevated access cannot apply.</li>
          <li>The client restricts the set of allowed TCP port values to exclude any ports where a confusion attack is likely to be possible (e.g., the "bad ports" list from the "Port blocking" section of <xref target="FETCH"/>).</li>
        </ul>
      </section>
      <section anchor="other-applicable-svcparamkeys">
        <name>Other applicable SvcParamKeys</name>
        <t>These SvcParamKeys from <xref target="SVCB"/> apply to the "dns" scheme without modification:</t>
        <ul spacing="normal">
          <li>mandatory</li>
          <li>ech</li>
          <li>ipv4hint</li>
          <li>ipv6hint</li>
        </ul>
        <t>Future SvcParamKeys might also be applicable.</t>
      </section>
    </section>
    <section anchor="new-svcparamkeys">
      <name>New SvcParamKeys</name>
      <section anchor="dohpath">
        <name>dohpath</name>
        <t>"<tt>dohpath</tt>" is a single-valued SvcParamKey whose value (both in presentation and wire format) MUST be a URI Template in relative form (<xref section="1.1" sectionFormat="comma" target="RFC6570"/>) encoded in UTF-8 <xref target="RFC3629"/>.  If the "<tt>alpn</tt>" SvcParam indicates support for HTTP, "<tt>dohpath</tt>" MUST be present.  The URI Template MUST contain a "<tt>dns</tt>" variable, and MUST be chosen such that the result after DoH template expansion (<xref section="6" sectionFormat="of" target="RFC8484"/>) is always a valid and functional "<tt>:path</tt>" value (<xref section="8.3.1" sectionFormat="comma" target="RFC9113"/>).</t>
        <t>When using this SVCB record, the client MUST send any DoH requests to the HTTP origin identified by the "<tt>https</tt>" scheme, the authentication name, and the port from the "<tt>port</tt>" SvcParam (if present).  HTTP requests MUST be directed to the resource resulting from DoH template expansion of the "<tt>dohpath</tt>" value.</t>
        <t>Clients SHOULD NOT query for any "HTTPS" RRs when using "<tt>dohpath</tt>".  Instead, the SvcParams and address records associated with this SVCB record SHOULD be used for the HTTPS connection, with the same semantics as an HTTPS RR.  However, for consistency, service operators SHOULD publish an equivalent HTTPS RR, especially if clients might learn about this DoH service through a different channel.</t>
      </section>
    </section>
    <section anchor="limitations">
      <name>Limitations</name>
      <t>This document is concerned exclusively with the DNS transport, and does not affect or inform the construction or interpretation of DNS messages.  For example, nothing in this document indicates whether the service is intended for use as a recursive or authoritative DNS server.  Clients need to know the intended use of services based on their context.</t>
      <t>Not all features of this specification will be applicable or effective in all contexts:</t>
      <ul spacing="normal">
        <li>If the authentication name is received over an insecure channel (e.g., a glue NS record), this specification cannot prevent the client from connecting to an attacker.</li>
        <li>Different transports might prove to be popular for different purposes (e.g., stub resolution vs. iterative resolution).  Implementors are not obligated to implement all the defined transports, although doing so is beneficial for compatibility.</li>
        <li>Where resolution speed is a high priority, the SVCB TargetName SHOULD follow the convention described in <xref section="11.2" sectionFormat="of" target="SVCB"/>, and the use of AliasMode records (<xref section="2.4.2" sectionFormat="of" target="SVCB"/>) is NOT RECOMMENDED.</li>
      </ul>
    </section>
    <section anchor="examples">
      <name>Examples</name>
      <ul spacing="normal">
        <li>
          <t>A resolver known as <tt>simple.example</tt> that supports DNS over TLS on port 853 (implicitly, as this is its default port):  </t>
          <artwork><![CDATA[
_dns.simple.example. 7200 IN SVCB 1 simple.example. alpn=dot
]]></artwork>
        </li>
        <li>
          <t>A DoH-only resolver at <tt>https://doh.example/dns-query{?dns}</tt>. (DNS over TLS is not supported.):  </t>
          <artwork><![CDATA[
_dns.doh.example. 7200 IN SVCB 1 doh.example. (
      alpn=h2 dohpath=/dns-query{?dns} )
]]></artwork>
        </li>
        <li>
          <t>A resolver known as <tt>resolver.example</tt> that supports:  </t>
          <ul spacing="normal">
            <li>DoT on <tt>resolver.example</tt> ports 853 (implicit in record 1) and 8530 (explicit in record 2), with "<tt>resolver.example</tt>" as the Authentication Domain Name,</li>
            <li>DoQ on <tt>resolver.example</tt> port 853 (record 1),</li>
            <li>DoH at <tt>https://resolver.example/dns-query{?dns}</tt> (record 1), and</li>
            <li>
              <t>an experimental protocol on <tt>fooexp.resolver.example:5353</tt> (record 3):      </t>
              <artwork><![CDATA[
_dns.resolver.example.  7200 IN SVCB 1 resolver.example. (
    alpn=dot,doq,h2,h3 dohpath=/dns-query{?dns} )
_dns.resolver.example.  7200 IN SVCB 2 resolver.example. (
    alpn=dot port=8530 )
_dns.resolver.example.  7200 IN SVCB 3 fooexp (
      port=5353 alpn=foo foo-info=... )
]]></artwork>
            </li>
          </ul>
        </li>
        <li>
          <t>A nameserver named <tt>ns.example.</tt> whose service configuration is published on a different domain:  </t>
          <artwork><![CDATA[
_dns.ns.example. 7200 IN SVCB 0 _dns.ns.nic.example.
]]></artwork>
        </li>
      </ul>
    </section>
    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <section anchor="adversary-on-the-query-path">
        <name>Adversary on the query path</name>
        <t>This section considers an adversary who can add or remove responses to the SVCB query.</t>
        <t>During secure transport establishment, clients MUST authenticate the server to its authentication name, which is not influenced by the SVCB record contents.  Accordingly, this draft does not mandate the use of DNSSEC.  This draft also does not specify how clients authenticate the name (e.g., selection of roots of trust), which might vary according to the context.</t>
        <section anchor="downgrade-attacks">
          <name>Downgrade attacks</name>
          <t>This attacker cannot impersonate the secure endpoint, but it can forge a response indicating that the requested SVCB records do not exist.  For a SVCB-reliant client (<xref section="3" sectionFormat="comma" target="SVCB"/>) this only results in a denial of service.  However, SVCB-optional clients will generally fall back to insecure DNS in this case, exposing all DNS traffic to attacks.</t>
        </section>
        <section anchor="redirection-attacks">
          <name>Redirection attacks</name>
          <t>SVCB-reliant clients always enforce the authentication domain name, but they are still subject to attacks using the transport, port number, and "dohpath" value, which are controlled by this adversary.  By changing these values in the SVCB answers, the adversary can direct DNS queries for $HOSTNAME to any port on $HOSTNAME, and any path on "<tt>https://$HOSTNAME</tt>".  If the DNS client uses shared TLS or HTTP state, the client could be correctly authenticated (e.g., using a TLS client certificate or HTTP cookie).</t>
          <t>This behavior creates a number of possible attacks for certain server configurations.  For example, if <tt>https://$HOSTNAME/upload</tt> accepts any POST request as a public file upload, the adversary could forge a SVCB record containing <tt>dohpath=/upload{?dns}</tt>.  This would cause the client to upload and publish every query, resulting in unexpected storage costs for the server and privacy loss for the client.  Similarly, if two DoH endpoints are available on the same origin, and the service has designated one of them for use with this specification, this adversary can cause clients to use the other endpoint instead.</t>
          <t>To mitigate redirection attacks, a client of this SVCB mapping MUST NOT identify or authenticate itself when performing DNS queries, except to servers that it specifically knows are not vulnerable to such attacks.  If an endpoint sends an invalid response to a DNS query, the client SHOULD NOT send more queries to that endpoint.  Multiple DNS services MUST NOT share a hostname identifier (<xref target="identity"/>) unless they are so similar that it is safe to allow an attacker to choose which one is used.</t>
        </section>
      </section>
      <section anchor="adversary-on-the-transport-path">
        <name>Adversary on the transport path</name>
        <t>This section considers an adversary who can modify network traffic between the client and the alternative service (identified by the TargetName).</t>
        <t>For a SVCB-reliant client, this adversary can only cause a denial of service.  However, because DNS is unencrypted by default, this adversary can execute a downgrade attack against SVCB-optional clients.  Accordingly, when use of this specification is optional, clients SHOULD switch to SVCB-reliant behavior if SVCB resolution succeeds.  Specifications making using of this mapping MAY adjust this fallback behavior to suit their requirements.</t>
      </section>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <t>Per <xref target="SVCB"/> IANA is directed to add the following entry to the SVCB Service Parameters registry.</t>
      <table>
        <thead>
          <tr>
            <th align="left">Number</th>
            <th align="left">Name</th>
            <th align="left">Meaning</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">7</td>
            <td align="left">dohpath</td>
            <td align="left">DNS over HTTPS path template</td>
            <td align="left">(This document)</td>
          </tr>
        </tbody>
      </table>
      <t>Per <xref target="Attrleaf"/>, IANA is directed to add the following entry to the DNS Underscore Global Scoped Entry Registry:</t>
      <table>
        <thead>
          <tr>
            <th align="left">RR TYPE</th>
            <th align="left">_NODE NAME</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">SVCB</td>
            <td align="left">_dns</td>
            <td align="left">(This document)</td>
          </tr>
        </tbody>
      </table>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <reference anchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner">
              <organization/>
            </author>
            <date month="March" year="1997"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="SVCB">
          <front>
            <title>Service binding and parameter specification via the DNS (DNS SVCB and HTTPS RRs)</title>
            <author fullname="Ben Schwartz">
              <organization>Google</organization>
            </author>
            <author fullname="Mike Bishop">
              <organization>Akamai Technologies</organization>
            </author>
            <author fullname="Erik Nygren">
              <organization>Akamai Technologies</organization>
            </author>
            <date day="24" month="May" year="2022"/>
            <abstract>
              <t>   This document specifies the "SVCB" and "HTTPS" DNS resource record
   (RR) types to facilitate the lookup of information needed to make
   connections to network services, such as for HTTP origins.  SVCB
   records allow a service to be provided from multiple alternative
   endpoints, each with associated parameters (such as transport
   protocol configuration and keys for encrypting the TLS ClientHello).
   They also enable aliasing of apex domains, which is not possible with
   CNAME.  The HTTPS RR is a variation of SVCB for use with HTTP [HTTP].
   By providing more information to the client before it attempts to
   establish a connection, these records offer potential benefits to
   both performance and privacy.

   TO BE REMOVED: This document is being collaborated on in Github at:
   https://github.com/MikeBishop/dns-alt-svc
   (https://github.com/MikeBishop/dns-alt-svc).  The most recent working
   version of the document, open issues, etc. should all be available
   there.  The authors (gratefully) accept pull requests.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-dnsop-svcb-https-10"/>
        </reference>
        <reference anchor="RFC8484">
          <front>
            <title>DNS Queries over HTTPS (DoH)</title>
            <author fullname="P. Hoffman" initials="P." surname="Hoffman">
              <organization/>
            </author>
            <author fullname="P. McManus" initials="P." surname="McManus">
              <organization/>
            </author>
            <date month="October" year="2018"/>
            <abstract>
              <t>This document defines a protocol for sending DNS queries and getting DNS responses over HTTPS.  Each DNS query-response pair is mapped into an HTTP exchange.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8484"/>
          <seriesInfo name="DOI" value="10.17487/RFC8484"/>
        </reference>
        <reference anchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba">
              <organization/>
            </author>
            <date month="May" year="2017"/>
            <abstract>
              <t>RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC6570">
          <front>
            <title>URI Template</title>
            <author fullname="J. Gregorio" initials="J." surname="Gregorio">
              <organization/>
            </author>
            <author fullname="R. Fielding" initials="R." surname="Fielding">
              <organization/>
            </author>
            <author fullname="M. Hadley" initials="M." surname="Hadley">
              <organization/>
            </author>
            <author fullname="M. Nottingham" initials="M." surname="Nottingham">
              <organization/>
            </author>
            <author fullname="D. Orchard" initials="D." surname="Orchard">
              <organization/>
            </author>
            <date month="March" year="2012"/>
            <abstract>
              <t>A URI Template is a compact sequence of characters for describing a range of Uniform Resource Identifiers through variable expansion. This specification defines the URI Template syntax and the process for expanding a URI Template into a URI reference, along with guidelines for the use of URI Templates on the Internet.   [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6570"/>
          <seriesInfo name="DOI" value="10.17487/RFC6570"/>
        </reference>
        <reference anchor="RFC3629">
          <front>
            <title>UTF-8, a transformation format of ISO 10646</title>
            <author fullname="F. Yergeau" initials="F." surname="Yergeau">
              <organization/>
            </author>
            <date month="November" year="2003"/>
            <abstract>
              <t>ISO/IEC 10646-1 defines a large character set called the Universal Character Set (UCS) which encompasses most of the world's writing systems.  The originally proposed encodings of the UCS, however, were not compatible with many current applications and protocols, and this has led to the development of UTF-8, the object of this memo.  UTF-8 has the characteristic of preserving the full US-ASCII range, providing compatibility with file systems, parsers and other software that rely on US-ASCII values but are transparent to other values.  This memo obsoletes and replaces RFC 2279.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="63"/>
          <seriesInfo name="RFC" value="3629"/>
          <seriesInfo name="DOI" value="10.17487/RFC3629"/>
        </reference>
        <reference anchor="RFC9113">
          <front>
            <title>HTTP/2</title>
            <author fullname="M. Thomson" initials="M." role="editor" surname="Thomson">
              <organization/>
            </author>
            <author fullname="C. Benfield" initials="C." role="editor" surname="Benfield">
              <organization/>
            </author>
            <date month="June" year="2022"/>
            <abstract>
              <t>This specification describes an optimized expression of the semantics of the Hypertext Transfer Protocol (HTTP), referred to as HTTP version 2 (HTTP/2). HTTP/2 enables a more efficient use of network resources and a reduced latency by introducing field compression and allowing multiple concurrent exchanges on the same connection.</t>
              <t>This document obsoletes RFCs 7540 and 8740.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9113"/>
          <seriesInfo name="DOI" value="10.17487/RFC9113"/>
        </reference>
      </references>
      <references>
        <name>Informative References</name>
        <reference anchor="FETCH" target="https://fetch.spec.whatwg.org/">
          <front>
            <title>Fetch Living Standard</title>
            <author>
              <organization/>
            </author>
            <date year="2022" month="February"/>
          </front>
        </reference>
        <reference anchor="RFC7858">
          <front>
            <title>Specification for DNS over Transport Layer Security (TLS)</title>
            <author fullname="Z. Hu" initials="Z." surname="Hu">
              <organization/>
            </author>
            <author fullname="L. Zhu" initials="L." surname="Zhu">
              <organization/>
            </author>
            <author fullname="J. Heidemann" initials="J." surname="Heidemann">
              <organization/>
            </author>
            <author fullname="A. Mankin" initials="A." surname="Mankin">
              <organization/>
            </author>
            <author fullname="D. Wessels" initials="D." surname="Wessels">
              <organization/>
            </author>
            <author fullname="P. Hoffman" initials="P." surname="Hoffman">
              <organization/>
            </author>
            <date month="May" year="2016"/>
            <abstract>
              <t>This document describes the use of Transport Layer Security (TLS) to provide privacy for DNS.  Encryption provided by TLS eliminates opportunities for eavesdropping and on-path tampering with DNS queries in the network, such as discussed in RFC 7626.  In addition, this document specifies two usage profiles for DNS over TLS and provides advice on performance considerations to minimize overhead from using TCP and TLS with DNS.</t>
              <t>This document focuses on securing stub-to-recursive traffic, as per the charter of the DPRIVE Working Group.  It does not prevent future applications of the protocol to recursive-to-authoritative traffic.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7858"/>
          <seriesInfo name="DOI" value="10.17487/RFC7858"/>
        </reference>
        <reference anchor="RFC9250">
          <front>
            <title>DNS over Dedicated QUIC Connections</title>
            <author fullname="C. Huitema" initials="C." surname="Huitema">
              <organization/>
            </author>
            <author fullname="S. Dickinson" initials="S." surname="Dickinson">
              <organization/>
            </author>
            <author fullname="A. Mankin" initials="A." surname="Mankin">
              <organization/>
            </author>
            <date month="May" year="2022"/>
            <abstract>
              <t>This document describes the use of QUIC to provide transport confidentiality for DNS. The encryption provided by QUIC has similar properties to those provided by TLS, while QUIC transport eliminates the head-of-line blocking issues inherent with TCP and provides more efficient packet-loss recovery than UDP. DNS over QUIC (DoQ) has privacy properties similar to DNS over TLS (DoT) specified in RFC 7858, and latency characteristics similar to classic DNS over UDP. This specification describes the use of DoQ as a general-purpose transport for DNS and includes the use of DoQ for stub to recursive, recursive to authoritative, and zone transfer scenarios.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9250"/>
          <seriesInfo name="DOI" value="10.17487/RFC9250"/>
        </reference>
        <reference anchor="DNSURI">
          <front>
            <title>Domain Name System Uniform Resource Identifiers</title>
            <author fullname="S. Josefsson" initials="S." surname="Josefsson">
              <organization/>
            </author>
            <date month="May" year="2006"/>
            <abstract>
              <t>This document defines Uniform Resource Identifiers for Domain Name System resources.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4501"/>
          <seriesInfo name="DOI" value="10.17487/RFC4501"/>
        </reference>
        <reference anchor="Attrleaf">
          <front>
            <title>Scoped Interpretation of DNS Resource Records through "Underscored" Naming of Attribute Leaves</title>
            <author fullname="D. Crocker" initials="D." surname="Crocker">
              <organization/>
            </author>
            <date month="March" year="2019"/>
            <abstract>
              <t>Formally, any DNS Resource Record (RR) may occur under any domain name.  However, some services use an operational convention for defining specific interpretations of an RRset by locating the records in a DNS branch under the parent domain to which the RRset actually applies.  The top of this subordinate branch is defined by a naming convention that uses a reserved node name, which begins with the underscore character (e.g., "_name").  The underscored naming construct defines a semantic scope for DNS record types that are associated with the parent domain above the underscored branch.  This specification explores the nature of this DNS usage and defines the "Underscored and Globally Scoped DNS Node Names" registry with IANA. The purpose of this registry is to avoid collisions resulting from the use of the same underscored name for different services.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="222"/>
          <seriesInfo name="RFC" value="8552"/>
          <seriesInfo name="DOI" value="10.17487/RFC8552"/>
        </reference>
      </references>
    </references>
    <section anchor="mapping-summary">
      <name>Mapping Summary</name>
      <t>This table serves as a non-normative summary of the DNS mapping for SVCB.</t>
      <table>
        <thead>
          <tr>
            <th align="left"> </th>
            <th align="left"> </th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">
              <strong>Mapped scheme</strong></td>
            <td align="left">"dns"</td>
          </tr>
          <tr>
            <td align="left">
              <strong>RR type</strong></td>
            <td align="left">SVCB (64)</td>
          </tr>
          <tr>
            <td align="left">
              <strong>Name prefix</strong></td>
            <td align="left">
              <tt>_dns</tt> for port 53, else <tt>_$PORT._dns</tt></td>
          </tr>
          <tr>
            <td align="left">
              <strong>Required keys</strong></td>
            <td align="left">
              <tt>alpn</tt></td>
          </tr>
          <tr>
            <td align="left">
              <strong>Automatically Mandatory Keys</strong></td>
            <td align="left">
              <tt>port</tt></td>
          </tr>
          <tr>
            <td align="left">
              <strong>Special behaviors</strong></td>
            <td align="left">Supports all HTTPS RR SvcParamKeys</td>
          </tr>
          <tr>
            <td align="left"> </td>
            <td align="left">Overrides the HTTPS RR for DoH</td>
          </tr>
          <tr>
            <td align="left"> </td>
            <td align="left">Default port is per-transport</td>
          </tr>
          <tr>
            <td align="left"> </td>
            <td align="left">No encrypted -&gt; cleartext fallback</td>
          </tr>
        </tbody>
      </table>
    </section>
    <section numbered="false" anchor="acknowledgments">
      <name>Acknowledgments</name>
      <t>Thanks to the many reviewers and contributors, including Andrew Campling, Peter van Dijk, Paul Hoffman, Daniel Migault, Matt Norhoff, Eric Rescorla, Andreas Schulze, and Eric Vyncke.</t>
    </section>
  </back>
  <!-- ##markdown-source:
H4sIAAAAAAAAA51b63LbuJL+r6fAUc4POyVpfIlzcVV21rGdE9eJHY/tnKmp
ra0xREISxxShQ5B2NIkfYJ9rX2y/7gZAUpJnMusfiSyCjUZfv+6Gh8Nhr8qq
3Byq/rUp77PEqHdZkWbFVJ3rxYL+n9hSnVxcK3puStfv6fG4NPf0xr+O34XH
/V5qk0LPQSkt9aQaZqaaDHWaDt19Mh6mhRvuvOolujJTWy4PlavSXi9blIeq
KmtX7e3svNnZ6+nS6EP1D1OYUue9B1veTUtbLw4VCPXuzBLfpIfqrKhMWZhq
eEI79Xqu0kX6q85tgd2XxvUW2aH6r8omA+VsWZVm4vBpOacP/93r6bqa2fKw
p4Y9hZ+scIfq3UhdJ7MHXVa/85dyknem+E3Ps6L7zJZTXWS/6yqzBZi1dpob
9fHjMT80c53lh2qM/13yn1N+OErsvNcrbDnHO/cGO6ur98d7u7tvDiGDYtJ+
8P705vjDIZMKinlvqmSmPmb3pI1rOqsu0z4vSSHPQ7W7q96bcVnrcqn2dvb2
5G1dTk2F12dVtXCHP/wwITIjtzDJ6GGmq4fpCAf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