<?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-rfc2629 version 1.5.24 -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-ietf-add-svcb-dns-02" category="std" consensus="true" tocInclude="true" sortRefs="true" symRefs="true" obsoletes="" updates="" submissionType="IETF" xml:lang="en" version="3">
  <!-- xml2rfc v2v3 conversion 3.12.0 -->
  <front>
    <title abbrev="SVCB for DNS">Service Binding Mapping for DNS Servers</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-add-svcb-dns-02"/>
    <author initials="B." surname="Schwartz" fullname="Benjamin Schwartz">
      <organization>Google LLC</organization>
      <address>
        <email>bemasc@google.com</email>
      </address>
    </author>
    <date year="2022" month="February" day="01"/>
    <area>General</area>
    <workgroup>add</workgroup>
    <keyword>Internet-Draft</keyword>
    <abstract>
      <t>The SVCB DNS 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 new 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" numbered="true" toc="default">
      <name>Introduction</name>
      <t>The SVCB record type <xref target="SVCB" format="default"/> 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 record type requires a mapping document for each service type, 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 and DNS over HTTPS.</t>
    </section>
    <section anchor="conventions-and-definitions" numbered="true" toc="default">
      <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" format="default"/> <xref target="RFC8174" format="default"/>
when, and only when, they appear in all capitals, as shown here.</t>
    </section>
    <section anchor="identity" numbered="true" toc="default">
      <name>Identities and Names</name>
      <t>SVCB record names (i.e. QNAMEs) are formed using Port-Prefix Naming (<xref section="2.3" sectionFormat="of" target="SVCB" format="default"/>), 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 them, we use the following terms:</t>
      <ul spacing="normal">
        <li>Binding authority - The service name (<xref section="1.4" sectionFormat="of" target="SVCB" format="default"/>) and optional port number used as input to Port-Prefix Naming.</li>
        <li>Authentication name - The name used for secure transport authentication.  It must be a DNS hostname or a literal IP address.  Unless otherwise specified, it is the service name from the binding authority.</li>
      </ul>
      <section anchor="special-case-non-default-ports" numbered="true" toc="default">
        <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" format="default"/> 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 a 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" numbered="true" toc="default">
      <name>Applicable existing SvcParamKeys</name>
      <section anchor="alpn" numbered="true" toc="default">
        <name>alpn</name>
        <t>This key indicates the set of supported protocols (<xref section="6.1" sectionFormat="of" target="SVCB" format="default"/>).  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 DNS over HTTPS <xref target="DOH" format="default"/>, and the "dohpath" key MUST be present (<xref target="dohpath" format="default"/>).  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" numbered="true" toc="default">
        <name>port</name>
        <t>This key is used to indicate the target port for connection (<xref section="6.2" sectionFormat="of" target="SVCB" format="default"/>).  If omitted, the client SHALL use the default port for each transport protocol (853 for DNS over TLS <xref target="DOT" format="default"/>, 443 for DNS over HTTPS).</t>
        <t>This key is automatically mandatory if present.  (See <xref section="7" sectionFormat="of" target="SVCB" format="default"/> for the definition of "automatically mandatory".)</t>
      </section>
      <section anchor="other-applicable-svcparamkeys" numbered="true" toc="default">
        <name>Other applicable SvcParamKeys</name>
        <t>These SvcParamKeys from <xref target="SVCB" format="default"/> apply to the "dns" scheme without modification:</t>
        <ul spacing="normal">
          <li>ech</li>
          <li>ipv4hint</li>
          <li>ipv6hint</li>
        </ul>
        <t>Future SvcParamKeys may also be applicable.</t>
      </section>
    </section>
    <section anchor="new-svcparamkeys" numbered="true" toc="default">
      <name>New SvcParamKeys</name>
      <section anchor="dohpath" numbered="true" toc="default">
        <name>dohpath</name>
        <t>"dohpath" is a single-valued SvcParamKey whose value (both in presentation and wire format) MUST be a URI Template <xref target="RFC6570" format="default"/> encoded in UTF-8 <xref target="RFC3629" format="default"/>.  If the "alpn" SvcParamKey indicates support for HTTP, "dohpath" MUST be present, and clients MAY construct a DNS over HTTPS URI Template as follows:</t>
        <ol spacing="normal" type="1"><li>Let <tt>$HOST</tt> be the authentication name encoded as a "<tt>host</tt>" value (<xref section="3.2.2" sectionFormat="of" target="RFC3986" format="default"/>).</li>
          <li>Let <tt>$PORT</tt> be the port from the "port" key if present, otherwise 443. (The binding authority's port number MUST NOT be used.)</li>
          <li>Let <tt>$DOHPATH</tt> be the "dohpath" value, decoded from UTF-8.</li>
          <li>The DNS over HTTPS URI Template is <tt>"https://$HOST:$PORT$DOHPATH"</tt>.</li>
        </ol>
        <t>The "dohpath" value MUST be chosen such that the resulting URI Template is valid for use with DNS over HTTPS.  For example, DNS over HTTPS servers are required to support requests using GET and POST methods.  The GET method relies on the "dns" URI Template parameter, and the POST method does not use it.  Therefore, the URI Template is required to make use of a "dns" variable, and result in a valid URI whether or not "dns" is defined.</t>
        <t>Clients SHOULD NOT query for any "HTTPS" RRs when using the constructed URI Template.  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 this URI Template through a different channel.</t>
      </section>
    </section>
    <section anchor="limitations" numbered="true" toc="default">
      <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 must know the intended use in their context.</t>
    </section>
    <section anchor="examples" numbered="true" toc="default">
      <name>Examples</name>
      <ul spacing="normal">
        <li>
          <t>A resolver at "<tt>simple.example</tt>" that supports DNS over TLS on port 853 (implicitly, as this is its default port):  </t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
_dns.simple.example. 7200 IN SVCB 1 simple.example. alpn=dot
]]></artwork>
        </li>
        <li>
          <t>A resolver at "<tt>doh.example</tt>" that supports only DNS over HTTPS (DNS over TLS is not supported):  </t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
_dns.doh.example. 7200 IN SVCB 1 doh.example. (
      alpn=h2 dohpath=/dns-query{?dns} )
]]></artwork>
        </li>
        <li>
          <t>A resolver at "<tt>resolver.example</tt>" that supports:  </t>
          <ul spacing="normal">
            <li>DNS over TLS 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>DNS over HTTPS 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 name="" type="" align="left" alt=""><![CDATA[
_dns.resolver.example.  7200 IN SVCB 1 resolver.example. (
    alpn=dot,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 at "<tt>ns.example</tt>" whose service configuration is published on a different domain:  </t>
          <artwork name="" type="" align="left" alt=""><![CDATA[
_dns.ns.example. 7200 IN SVCB 0 _dns.ns.nic.example.
]]></artwork>
        </li>
      </ul>
    </section>
    <section anchor="security-considerations" numbered="true" toc="default">
      <name>Security Considerations</name>
      <section anchor="adversary-on-the-query-path" numbered="true" toc="default">
        <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" numbered="true" toc="default">
          <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" format="default"/>) 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" numbered="true" toc="default">
          <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 "https://$HOSTNAME".  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 "https://$HOSTNAME/upload" accepts any POST request as a public file upload, the adversary could forge a SVCB record containing <tt>dohpath=/upload</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 provide client authentication for 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.  DNS services that are identified by a hostname (<xref target="identity" format="default"/>) MUST ensure that all unauthenticated DNS requests to that name receive any promised privacy and security guarantees, regardless of transport, port number, or HTTP path.</t>
        </section>
      </section>
      <section anchor="adversary-on-the-transport-path" numbered="true" toc="default">
        <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" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>Per <xref target="SVCB" format="default"/> IANA is directed to add the following entry to the SVCB Service Parameters registry.</t>
      <table align="center">
        <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" format="default"/>, IANA is directed to add the following entry to the DNS Underscore Global Scoped Entry Registry:</t>
      <table align="center">
        <thead>
          <tr>
            <th align="left">RR TYPE</th>
            <th align="left">_NODE NAME</th>
            <th align="left">Meaning</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">SVCB</td>
            <td align="left">_dns</td>
            <td align="left">DNS SVCB info</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="12" month="October" year="2021"/>
            <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-08"/>
        </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="DOH">
          <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="DOT">
          <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="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="RFC3986">
          <front>
            <title>Uniform Resource Identifier (URI): Generic Syntax</title>
            <author fullname="T. Berners-Lee" initials="T." surname="Berners-Lee">
              <organization/>
            </author>
            <author fullname="R. Fielding" initials="R." surname="Fielding">
              <organization/>
            </author>
            <author fullname="L. Masinter" initials="L." surname="Masinter">
              <organization/>
            </author>
            <date month="January" year="2005"/>
            <abstract>
              <t>A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource.  This specification defines the generic URI syntax and a process for resolving URI references that might be in relative form, along with guidelines and security considerations for the use of URIs on the Internet.  The URI syntax defines a grammar that is a superset of all valid URIs, allowing an implementation to parse the common components of a URI reference without knowing the scheme-specific requirements of every possible identifier.  This specification does not define a generative grammar for URIs; that task is performed by the individual specifications of each URI scheme.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="66"/>
          <seriesInfo name="RFC" value="3986"/>
          <seriesInfo name="DOI" value="10.17487/RFC3986"/>
        </reference>
      </references>
      <references>
        <name>Informative References</name>
        <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" numbered="true" toc="default">
      <name>Mapping Summary</name>
      <t>This table serves as a non-normative summary of the DNS mapping for SVCB.</t>
      <table align="center">
        <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" toc="default">
      <name>Acknowledgments</name>
      <t>Thanks to the many reviewers and contributors, including Daniel Migault, Paul Hoffman, Matt Norhoff, Peter van Dijk, Eric Rescorla, and Andreas Schulze.</t>
    </section>
  </back>
  <!-- ##markdown-source:
H4sIAIpV+WEAA51b+3MbN5L+nX8Fjrmqk1wkY738UJU3J0tKrFpZ0krybaWu
tiJwBiQRDQfcASiZkf2/39eNxzxIJfaxUhE5AzQa/fy6AQ+Hw57TrlCHon+j
qgedKfFel7kup+KjXCzo78RU4uTiRtB7Vdl+T47HlXqgGf9z/D6+7vdyk5Vy
Dkp5JSduqJWbDGWeD+1DNh7mpR2+3O1l0qmpqVaHwrq819OL6lC4amnd7suX
b/FeVkoeil9UqSpZ9B5NdT+tzHJxKECod69WeJIfirPSqapUbnhCK/V61sky
/00WpsTqK2V7C30o/teZbCCsqVylJhbfVnP68q9eTy7dzFSHPTHsCXx0aQ/F
+5G4yWaPsnJ/8EO/k/eq/F3Oddl+Z6qpLPUf0mlTgl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