<?xml version="1.0" encoding="us-ascii"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY RFC2119 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC3688 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3688.xml">
<!ENTITY RFC5731 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5731.xml">
<!ENTITY RFC5732 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5732.xml">
<!ENTITY RFC6927 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6927.xml">
<!ENTITY RFC7451 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7451.xml">
<!ENTITY RFC8499 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8499.xml">
<!ENTITY RFC8590 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8590.xml">
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<?rfc strict="yes" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<?rfc comments="yes" ?>
<?rfc inline="yes" ?>
<rfc category="exp" docName="draft-regext-brown-epp-ttl-03" ipr="trust200902"
	submissionType="independent">

  <front>
    <title abbrev="TTL mapping for EPP">Extensible Provisioning Protocol (EPP)
			mapping for DNS Time-To-Live (TTL) values</title>

    <author fullname="Gavin Brown" initials="G" surname="Brown">
      <organization>CentralNic Group plc</organization>
      <address>
        <postal>
          <street>44 Gutter Lane</street>
          <city>London</city>
          <code>EC2V 6BR</code>
          <country>GB</country>
        </postal>
        <phone>+44 20 33 88 0600</phone>
        <email>gavin.brown@centralnic.com</email>
        <uri>https://www.centralnic.com</uri>
      </address>
    </author>

    <date month="November" year="2022" day="16"/>
    <area>Applications</area>
    <workgroup>Registration Protocols Extensions (regext)</workgroup>

    <abstract>
      <t>This document describes an extension to the Extensible Provisioning
				Protocol (EPP) that allows EPP clients to manage the Time-To-Live
				(TTL) value for domain name delegation records.</t>
    </abstract>
  </front>

  <middle>
    <section title="Introduction">
      <t>The principal output of any domain name provisioning system is a
				DNS zone file, which contains the delegation record(s) for names
				registered within a zone (such as a top-level domain). These
				records include, at minimum, one or more <spanx style="verb">NS</spanx>
				records, but may also include <spanx style="verb">A</spanx>
				and/or <spanx style="verb">AAAA</spanx> glue records, <spanx
				style="verb">DS</spanx> records, and <spanx
				style="verb">DNAME</spanx> records for IDN variants (<xref
        target="RFC6927"/>).</t>

      <t>Typically, the Time-To-Live (TTL, see Section 5 of <xref
        target="RFC8499" />) of these records is determined by the
        registry operator. However, in some circumstances it may be]
        desirable to allow the sponsoring	client of a domain name to
        change the TTL used for a that domain: for example, to reduce
        the amount of	time required to complete a change of DNS servers
        or DNSSEC deployment of key rollover, or to allow for fast
        rollback of such changes.</t>

      <t>This document describes an EPP extension to the domain
				name and host object mappings (described in <xref
				target="RFC5731"/> and <xref target="RFC5732"/>,
				respectively) which allows the sponsor of a domain name
				or host object to change the TTL associated with that
				object.</t>

      <section title="Conventions used in this document">
        <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL",
					"SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED",
					"MAY", and "OPTIONAL" in this document are to be
					interpreted as described in <xref target="RFC2119"/>.</t>

        <t>In examples, "C:" represents lines sent by a protocol
					client and "S:" represents lines returned by a protocol
					server. Indentation and white space in examples are
					provided only to illustrate element relationships and
					are not REQUIRED features of this protocol.</t>

				<t>A protocol client that is authorized to manage an existing
					object is described as a "sponsoring" client throughout
					this document.</t>

        <t>XML is case sensitive. Unless stated otherwise, XML
					specifications and examples provided in this document
					<bcp14>MUST</bcp14> be interpreted in the character case
          presented in order to develop a conforming implementation.</t>

        <t>EPP uses XML namespaces to provide an extensible
					object management framework and to identify schemas
					required for XML instance parsing and validation.
					These namespaces and schema definitions are used to
					identify both the base protocol schema and the
					schemas for managed objects.</t>

        <t>The XML namespace prefixes used in examples (such as the
          string <spanx style="verb">ttl</spanx> in <spanx
					style="verb">xmlns:ttl</spanx>) are solely for
					illustrative purposes. A conforming implementation
					<bcp14>MUST NOT</bcp14> require the use of these or any
          other specific namespace prefixes.</t>
      </section>
    </section>

    <section title="Extension elements">
      <t>This specification defines a two new elements that are
        included in <spanx style="verb">&lt;info&gt;</spanx>,
        <spanx style="verb">&lt;create&gt;</spanx> and
        <spanx style="verb">&lt;update&gt;</spanx> commands:</t>
        <t><list style="symbols">
  				<t><spanx style="verb">&lt;ttl:secs&gt;</spanx>, which contains
  				a 32-bit unsigned integer indicating the TTL (expressed in
  				seconds) which will be applied to the delegation records
  				for the associated domain name or host object; and</t>
  				<t><spanx style="verb">&lt;ttl:until&gt;</spanx>, which contains
          a date and time after which a TTL (specified using the
          <spanx style="verb">&lt;ttl:secs&gt;</spanx> element) should
          revert to the server's default value.</t>
        </list></t>

      <t>Examples:</t>
      <figure>
        <artwork>&lt;secs xmlns="urn:ietf:params:xml:ns:ttl-1.0"&gt;3600&lt;/secs&gt;</artwork>

        <artwork>&lt;until xmlns="urn:ietf:params:xml:ns:ttl-1.0"&gt;2022-12-01T08:00:00.0Z&lt;/until&gt;</artwork>
      </figure>

      <t>The <spanx style="verb">&lt;ttl:until&gt;</spanx> element is <bcp14>OPTIONAL</bcp14>
        in <spanx style="verb">&lt;create&gt;</spanx>, <spanx style="verb">&lt;update&gt;</spanx>
        and <spanx style="verb">&lt;info&gt;</spanx> commands. EPP servers which do not support this
        element <bcp14>MUST</bcp14> reject commands which contain it with a 2012 "Unimplemented
        option" response.</t>

      <t>Conversely, EPP servers whose policies require the use of the <spanx style="verb">&lt;ttl:until&gt;</spanx>
        element <bcp14>MUST</bcp14> reject commands which do not contain it with a 2003 "Required parameter missing"
        response.</t>
    </section>

    <section title="EPP command mapping">
      <section title="EPP query commands">
        <section title="EPP &lt;info&gt; command">
          <t>This extension defines additional elements for EPP
						<spanx style="verb">&lt;info&gt;</spanx> responses for
						domain and host objects.</t>

          <t>The <spanx style="verb">&lt;info&gt;</spanx> response <bcp14>MAY</bcp14>
						contain an <spanx style="verb">&lt;extension&gt;</spanx> element,
						which <bcp14>MAY</bcp14> contain a <spanx style="verb">&lt;ttl:infData&gt;</spanx>
						element, which contains the following child elements:</t>

          <t><list style="symbols">
            <t>A <spanx style="verb">&lt;ttl:secs&gt;</spanx> element showing the
              current TTL for the object; and</t>
            <t>An <bcp14>OPTIONAL</bcp14> <spanx style="verb">&lt;ttl:until&gt;</spanx>
              element containing the date and time after which the TTL will revert
              to the server's default value.</t>
          </list></t>

          <t>The <spanx style="verb">&lt;ttl:until&gt;</spanx> <bcp14>MUST NOT</bcp14>
            appear in <spanx style="verb">&lt;info&gt;</spanx> responses if: (1) the
            server does not support this element, (2) the object already has the
            server's default TTL value, or (3) the server does not implement automatic
            reversion of custom TTL values.</t>

          <t>Example domain <spanx style="verb">&lt;info&gt;</spanx> response:</t>
          <figure>
            <artwork>
S: &lt;?xml version="1.0" encoding="utf-8" standalone="no"?&gt;
S: &lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
S:   &lt;response&gt;
S:     &lt;result code="1000"&gt;
S:       &lt;msg&gt;Command completed successfully&lt;/msg&gt;
S:     &lt;/result&gt;
S:     &lt;resData&gt;
S:       &lt;domain:infData
S:         xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"&gt;
S:         &lt;domain:name&gt;example.com&lt;/domain:name&gt;
S:         &lt;domain:roid&gt;EXAMPLE1-REP&lt;/domain:roid&gt;
S:         &lt;domain:status s="ok" /&gt;
S:         &lt;domain:registrant&gt;jd1234&lt;/domain:registrant&gt;
S:         &lt;domain:contact type="admin"&gt;sh8013&lt;/domain:contact&gt;
S:         &lt;domain:contact type="tech"&gt;sh8013&lt;/domain:contact&gt;
S:         &lt;domain:ns&gt;
S:           &lt;domain:hostObj&gt;ns1.example.com&lt;/domain:hostObj&gt;
S:           &lt;domain:hostObj&gt;ns1.example.net&lt;/domain:hostObj&gt;
S:         &lt;/domain:ns&gt;
S:         &lt;domain:clID&gt;ClientX&lt;/domain:clID&gt;
S:         &lt;domain:crID&gt;ClientY&lt;/domain:crID&gt;
S:         &lt;domain:crDate&gt;1999-04-03T22:00:00.0Z&lt;/domain:crDate&gt;
S:         &lt;domain:upID&gt;ClientX&lt;/domain:upID&gt;
S:         &lt;domain:upDate&gt;1999-12-03T09:00:00.0Z&lt;/domain:upDate&gt;
S:         &lt;domain:exDate&gt;2005-04-03T22:00:00.0Z&lt;/domain:exDate&gt;
S:         &lt;domain:trDate&gt;2000-04-08T09:00:00.0Z&lt;/domain:trDate&gt;
S:         &lt;domain:authInfo&gt;
S:           &lt;domain:pw&gt;2fooBAR&lt;/domain:pw&gt;
S:         &lt;/domain:authInfo&gt;
S:       &lt;/domain:infData&gt;
S:     &lt;/resData&gt;
S:     &lt;extension&gt;
S:       &lt;ttl:infData
S:         xmlns:ttl="urn:ietf:params:xml:ns:ttl-1.0"&gt;
S:         &lt;ttl:secs&gt;3600&lt;/ttl:secs&gt;
S:         &lt;ttl:until&gt;2022-12-01T08:30:00.0Z&lt;/ttl:until&gt;
S:       &lt;/ttl:infData&gt;
S:     &lt;/extension&gt;
S:     &lt;trID&gt;
S:       &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
S:       &lt;svTRID&gt;54322-XYZ&lt;/svTRID&gt;
S:     &lt;/trID&gt;
S:   &lt;/response&gt;
S: &lt;/epp&gt;</artwork>
          </figure>

          <t>Example host <spanx style="verb">&lt;info&gt;</spanx> response:</t>
          <figure>
            <artwork>S:&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
S: &lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
S:   &lt;response&gt;
S:     &lt;result code="1000"&gt;
S:       &lt;msg&gt;Command completed successfully&lt;/msg&gt;
S:     &lt;/result&gt;
S:     &lt;resData&gt;
S:       &lt;host:infData
S:        xmlns:host="urn:ietf:params:xml:ns:host-1.0"&gt;
S:         &lt;host:name&gt;ns1.example.com&lt;/host:name&gt;
S:         &lt;host:roid&gt;NS1_EXAMPLE1-REP&lt;/host:roid&gt;
S:         &lt;host:status s="linked"/&gt;
S:         &lt;host:status s="clientUpdateProhibited"/&gt;
S:         &lt;host:addr ip="v4"&gt;192.0.2.2&lt;/host:addr&gt;
S:         &lt;host:addr ip="v4"&gt;192.0.2.29&lt;/host:addr&gt;
S:         &lt;host:addr ip="v6"&gt;1080::8:800:200C:417A&lt;/host:addr&gt;
S:         &lt;host:clID&gt;ClientY&lt;/host:clID&gt;
S:         &lt;host:crID&gt;ClientX&lt;/host:crID&gt;
S:         &lt;host:crDate&gt;1999-04-03T22:00:00.0Z&lt;/host:crDate&gt;
S:         &lt;host:upID&gt;ClientX&lt;/host:upID&gt;
S:         &lt;host:upDate&gt;1999-12-03T09:00:00.0Z&lt;/host:upDate&gt;
S:         &lt;host:trDate&gt;2000-04-08T09:00:00.0Z&lt;/host:trDate&gt;
S:       &lt;/host:infData&gt;
S:     &lt;/resData&gt;
S:      &lt;extension&gt;
S:        &lt;ttl:infData
S:          xmlns:ttl="urn:ietf:params:xml:ns:ttl-1.0"&gt;
S:          &lt;ttl:secs&gt;3600&lt;/ttl:secs&gt;
S:         &lt;ttl:until&gt;2022-12-01T08:30:00.0Z&lt;/ttl:until&gt;
S:        &lt;/ttl:infData&gt;
S:      &lt;/extension&gt;
S:     &lt;trID&gt;
S:       &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
S:       &lt;svTRID&gt;54322-XYZ&lt;/svTRID&gt;
S:     &lt;/trID&gt;
S:   &lt;/response&gt;
S: &lt;/epp&gt;</artwork>
          </figure>
        </section>
      </section>

      <section title="EPP transform commands">
        <section title="EPP &lt;create&gt; command">
          <t>This extension defines additional elements for EPP <spanx
						style="verb">&lt;create&gt;</spanx> commands for domain
						and host objects.</t>

          <t>The <spanx style="verb">&lt;create&gt;</spanx> command
						<bcp14>MAY</bcp14> contain an <spanx style="verb">&lt;extension&gt;</spanx>
						element which <bcp14>MAY</bcp14> contain a <spanx style="verb">&lt;ttl:create&gt;</spanx>
						element, which contains the following child elements:</t>

          <t><list style="symbols">
            <t>A <spanx style="verb">&lt;ttl:secs&gt;</spanx> element showing the
              desired TTL for the object; and</t>
            <t>An <bcp14>OPTIONAL</bcp14> <spanx style="verb">&lt;ttl:until&gt;</spanx>
              element containing the date and time after which the TTL should revert
              to the server's default value.</t>
          </list></t>

          <t>Example domain <spanx style="verb">&lt;create&gt;</spanx> command:</t>
          <figure>
            <artwork>C: &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
C: &lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
C:   &lt;command&gt;
C:     &lt;create&gt;
C:       &lt;domain:create
C:        xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"&gt;
C:         &lt;domain:name&gt;example.com&lt;/domain:name&gt;
C:         &lt;domain:period unit="y"&gt;2&lt;/domain:period&gt;
C:         &lt;domain:ns&gt;
C:           &lt;domain:hostObj&gt;ns1.example.net&lt;/domain:hostObj&gt;
C:           &lt;domain:hostObj&gt;ns2.example.net&lt;/domain:hostObj&gt;
C:         &lt;/domain:ns&gt;
C:         &lt;domain:registrant&gt;jd1234&lt;/domain:registrant&gt;
C:         &lt;domain:contact type="admin"&gt;sh8013&lt;/domain:contact&gt;
C:         &lt;domain:contact type="tech"&gt;sh8013&lt;/domain:contact&gt;
C:         &lt;domain:authInfo&gt;
C:           &lt;domain:pw&gt;2fooBAR&lt;/domain:pw&gt;
C:         &lt;/domain:authInfo&gt;
C:       &lt;/domain:create&gt;
C:     &lt;/create&gt;
C:     &lt;extension&gt;
C:       &lt;ttl:create
C:         xmlns:ttl="urn:ietf:params:xml:ns:ttl-1.0"&gt;
C:         &lt;ttl:secs&gt;3600&lt;/ttl:secs&gt;
S:         &lt;ttl:until&gt;2022-12-01T08:30:00.0Z&lt;/ttl:until&gt;
C:       &lt;/ttl:create&gt;
C:     &lt;/extension&gt;
C:     &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
C:   &lt;/command&gt;
C: &lt;/epp&gt;</artwork>
          </figure>

          <t>Example host <spanx style="verb">&lt;create&gt;</spanx> command:</t>
          <figure>
            <artwork>C:&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
C: &lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
C:   &lt;command&gt;
C:     &lt;create&gt;
C:       &lt;host:create
C:        xmlns:host="urn:ietf:params:xml:ns:host-1.0"&gt;
C:         &lt;host:name&gt;ns1.example.com&lt;/host:name&gt;
C:         &lt;host:addr ip="v4"&gt;192.0.2.2&lt;/host:addr&gt;
C:         &lt;host:addr ip="v4"&gt;192.0.2.29&lt;/host:addr&gt;
C:         &lt;host:addr ip="v6"&gt;1080::8:800:200C:417A&lt;/host:addr&gt;
C:       &lt;/host:create&gt;
C:     &lt;/create&gt;
C:     &lt;extension&gt;
C:       &lt;ttl:create
C:         xmlns:ttl="urn:ietf:params:xml:ns:ttl-1.0"&gt;
C:         &lt;ttl:secs&gt;3600&lt;/ttl:secs&gt;
S:         &lt;ttl:until&gt;2022-12-01T08:30:00.0Z&lt;/ttl:until&gt;
C:       &lt;/ttl:create&gt;
C:     &lt;/extension&gt;
C:     &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
C:   &lt;/command&gt;
C: &lt;/epp&gt;
</artwork>
          </figure>

          <t>EPP servers which do not support the <spanx style="verb">&lt;ttl:until&gt;</spanx>
            element <bcp14>MUST</bcp14> reject commands which contain
            it with a 2012 "Unimplemented option" response.</t>

        </section>

        <section title="EPP &lt;update&gt; command">
          <t>This extension defines additional elements for EPP <spanx
						style="verb">&lt;update&gt;</spanx> commands for domain
						and host objects.</t>

          <t>The <spanx style="verb">&lt;update&gt;</spanx> command
					<bcp14>MAY</bcp14> contain an <spanx style="verb">&lt;extension&gt;</spanx>
					element which <bcp14>MAY</bcp14> contain a <spanx style="verb">&lt;ttl:create&gt;</spanx>
					element, which contains the following child elements:</t>

        <t><list style="symbols">
          <t>A <spanx style="verb">&lt;ttl:secs&gt;</spanx> element showing the
            desired TTL for the object; and</t>
          <t>An <bcp14>OPTIONAL</bcp14> <spanx style="verb">&lt;ttl:until&gt;</spanx>
            element containing the date and time after which the TTL should revert
            to the server's default value.</t>
        </list></t>

          <t>Example domain <spanx style="verb">&lt;update&gt;</spanx> command:</t>
          <figure>
            <artwork>
C: &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
C: &lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
C:      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
C:   &lt;command&gt;
C:     &lt;update&gt;
C:       &lt;domain:update
C:        xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"&gt;
C:         &lt;domain:name&gt;example.com&lt;/domain:name&gt;
C:       &lt;/domain:update&gt;
C:     &lt;/update&gt;
C:     &lt;extension&gt;
C:        &lt;ttl:update&gt;
C:          xmlns:ttl="urn:ietf:params:xml:ns:ttl-1.0"&gt;
C:          &lt;ttl:secs&gt;3600&lt;/ttl:secs&gt;
S:         &lt;ttl:until&gt;2022-12-01T08:30:00.0Z&lt;/ttl:until&gt;
C:        &lt;/ttl:update&gt;
C:      &lt;/extension&gt;
C:     &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
C:   &lt;/command&gt;
C: &lt;/epp&gt;</artwork>
          </figure>

          <t>Example host <spanx style="verb">&lt;update&gt;</spanx> command:</t>
          <figure>
            <artwork>C:&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
C: &lt;epp xmlns="urn:ietf:params:xml:ns:epp-1.0"&gt;
C:   &lt;command&gt;
C:     &lt;update&gt;
C:       &lt;host:update
C:        xmlns:host="urn:ietf:params:xml:ns:host-1.0"&gt;
C:         &lt;host:name&gt;ns1.example.com&lt;/host:name&gt;
C:         &lt;host:add&gt;
C:           &lt;host:addr ip="v4"&gt;192.0.2.22&lt;/host:addr&gt;
C:           &lt;host:status s="clientUpdateProhibited"/&gt;
C:         &lt;/host:add&gt;
C:         &lt;host:rem&gt;
C:           &lt;host:addr ip="v6"&gt;1080::8:800:200C:417A&lt;/host:addr&gt;
C:         &lt;/host:rem&gt;
C:         &lt;host:chg&gt;
C:           &lt;host:name&gt;ns2.example.com&lt;/host:name&gt;
C:         &lt;/host:chg&gt;
C:       &lt;/host:update&gt;
C:     &lt;/update&gt;
C:     &lt;extension&gt;
C:        &lt;ttl:update&gt;
C:          xmlns:ttl="urn:ietf:params:xml:ns:ttl-1.0"&gt;
C:          &lt;ttl:secs&gt;3600&lt;/ttl:secs&gt;
S:         &lt;ttl:until&gt;2022-12-01T08:30:00.0Z&lt;/ttl:until&gt;
C:        &lt;/ttl:update&gt;
C:      &lt;/extension&gt;
C:     &lt;clTRID&gt;ABC-12345&lt;/clTRID&gt;
C:   &lt;/command&gt;
C: &lt;/epp&gt;</artwork>
          </figure>

          <t>EPP servers which do not support the <spanx style="verb">&lt;ttl:until&gt;</spanx>
            element <bcp14>MUST</bcp14> reject commands which contain
            it with a 2012 "Unimplemented option" response.</t>

        </section>
      </section>
    </section>

    <section title="Server processing of TTL values">
      <t>If an EPP server receives a command containing a TTL that is outside the
				server's permitted range (see <xref target="operational-considerations"
				format="title"/> and <xref target="security-considerations" format="title"/>
				below), it <bcp14>MUST</bcp14> reject the command with a <spanx style="verb">2004</spanx>
				"Parameter value range error" response.</t>

				<section title="Use of TTL values in delegation records">
		      <t>EPP servers which implement this extension <bcp14>SHOULD</bcp14> use the values provided
						by EPP clients for the TTL values of <spanx style="verb">NS</spanx>, <spanx
						style="verb">A</spanx>, <spanx style="verb">AAAA</spanx> and <spanx
						style="verb">DS</spanx> records published in the DNS for the corresponding
						delegation.</t>
				</section>

				<section title="Relationship between host object and domain object TTL values">
					<t>The extension in this document allows TTL values to be configured for both
						domain and host objects. In domain name registries, these object types have
						a hierarchical relationship, in that a host object may be subordinate to a
						domain object: for example, the host object <spanx style="verb">ns1.example.com</spanx>
						is subordinate to the domain object <spanx style="verb">example.com</spanx>.</t>

					<t>When publishing <spanx style="verb">A</spanx> and <spanx style="verb">AAAA</spanx>
						for host objects, TTL values for host objects <bcp14>SHOULD</bcp14> take
						precedence over the TTL of the superordinate domain object. However, if no
						TTL value is configured for a subordinate host object, but a TTL value is
						configured for the superordinate domain object, then the domain object's TTL
						value <bcp14>SHOULD</bcp14> be used for the host object instead of the default
						TTL value.</t>

				</section>

				<section title="Use of TTL values for IDN variants">
		      <t>If a domain name has variants (<xref target="RFC6927"/>) that are linked
						to that domain, then any <spanx style="verb">NS</spanx> or <spanx
						style="verb">DNAME</spanx> records published for those variants <bcp14>MUST</bcp14> use the
						same TTL as that used for the primary domain.</t>
				</section>
    </section>

    <section title="Out-of-band changes to TTL values">
      <t>EPP server operators <bcp14>MAY</bcp14>, in order to address operational or security issues,
				make changes to TTL values out-of-band (that is, not in response to an
				<spanx style="verb">&lt;update&gt;</spanx> command received from the sponsoring
				client).</t>

      <t>Additionally, server operators <bcp14>MAY</bcp14> implement an automatic reset of TTL values,
				so that they may be changed for a finite period before and after a planned
				change, and then revert to a standard value.</t>

      <t>In the event of changes to TTL values taking place out-of-band, EPP server
				operators <bcp14>SHOULD</bcp14> notify the sponsoring client using the EPP Change Poll
				extension (<xref target="RFC8590"/>).</t>
    </section>

    <section anchor="operational-considerations" title="Operational considerations">
      <section title="Operational impact of TTL values">
        <t>Domain registry operators must strike a balance between, on the one hand,
					the desire of registrants for changes to their domains to be visible in the
					DNS quickly, and on the other, the increased DNS query traffic that short TTLs
					can bring. Historically, registry operators have used a global TTL value which
					was applied to all delegations within their zones, which could then be tuned to
					an optimum value.</t>

        <t>Domain registry operators <bcp14>SHOULD</bcp14> implement limits on the
					maximum and	minimum accepted TTL values that are narrower than the values
					permitted in the XML schema in the <xref target="formal-specification"
					format="title"/> (which were chosen to allow any TTL permitted in DNS
					records), in order to prevent scenarios where an excessively high or low
					TTL causes operational issues on either side of the zone cut.</t>

        <t>Similarly, EPP servers which support the <spanx style="verb">&lt;ttl:until&gt;</spanx>
          element <bcp14>MUST</bcp14> reject commands (with a 2004 "parameter value range
          error" response) if the specified date and time is in the past, or is otherwise
          outside a server-defined range of acceptable values.</t>

        <t>EPP servers <bcp14>MAY</bcp14> vary the range of acceptable values for the 
          <spanx style="verb">&lt;ttl:until&gt;</spanx> element based on the value of
          the <spanx style="verb">&lt;ttl:secs&gt;</spanx> element: for example, to allow
          the setting of a very short TTL for a short period of time, while permitting
          longer TTLs to be used for longer periods, as the following table illustrates:</t>

          <texttable title="Example TTL/Duration Policy Table">
            <ttcol align="center">TTL value range</ttcol>
            <ttcol align="center">Maximum duration</ttcol>

            <c>0-60s</c>
            <c>-</c>

            <c>61-299s</c>
            <c>3600s</c>

            <c>300-1099s</c>
            <c>43200s</c>

            <c>1200-3599s</c>
            <c>86400s</c>

            <c>&ge; 3600s</c>
            <c>any</c>
          </texttable>

          <t>In the above policy, the default TTL is one hour, and the server will reject any TTL
            below 60 seconds. Clients can set TTLs of between one and five minutes for a maximum
            of one hour, or between five minutes and thirty minutes for up to twelve hours, or
            between 30 minutes and one hour for up to one day.</t>

      </section>

      <section title="When the TTL should be changed">
        <t>A common operational mistake is changing of DNS record TTLs during or
					after the planned change to the records themselves. This arises due to a
					misunderstanding about how TTLs work.</t>

        <t>Client implementations of this specification <bcp14>SHOULD</bcp14> ensure
					that the user understands that changes to a TTL are only effective in
					shortening transition periods if implemented a period of time &mdash; at
					least equal to the current TTL &mdash; <em>before</em> the planned change.</t>
      </section>
    </section>

    <section anchor="security-considerations" title="Security considerations">
      <t>Many malicious actors use a technique called "fast flux DNS" to rapidly
				change the DNS configuration for a zone in order to evade takedown and law
				enforcement activity.</t>

      <t>Registry operators <bcp14>SHOULD</bcp14> take this into consideration when
				setting the lower limit on TTL values, since a short TTL on delegations has
				the potential to enhance the effectiveness of fast flux techniques on evasion.</t>
    </section>

    <section anchor="IANA" title="IANA considerations">
      <section title="XML namespace">
        <t>This document uses URNs to describe XML namespaces and XML schemas
					conforming to a registry mechanism described in <xref target="RFC3688"/>. The
					following URI assignment has been made by IANA:</t>

        <t>Registration for the TTL namespace:</t>
        <list>
          <t><strong>URI:</strong> <spanx style="verb">urn:ietf:params:xml:ns:ttl-1.0</spanx></t>
          <t><strong>Registrant Contact:</strong> See the author of this document</t>
          <t><strong>XML:</strong> None. Namespace URIs do not represent an XML specification</t>
        </list>

        <t>Registration for the TTL XML schema:</t>
        <list>
          <t><strong>URI:</strong> <spanx style="verb">urn:ietf:params:xml:ns:ttl-1.0</spanx></t>
          <t><strong>Registrant Contact:</strong> See the author of this document</t>
          <t><strong>XML:</strong> See the "<xref target="formal-specification" format="title"/>"
						section of this document</t>
        </list>
      </section>

      <section title="EPP extension registry">
        <t>The EPP extension described in this document has been registered by the IANA
					in the Extensions for the "Extensible Provisioning Protocol (EPP)" registry
					described in <xref target="RFC7451"/>. The details of the registration are
					as follows:</t>

        <list>
          <t><strong>Name of Extension:</strong> Extensible Provisioning Protocol (EPP) Mapping
						for DNS Time-To-Live (TTL) values</t>
          <t><strong>Document Status:</strong> Experimental</t>
          <t><strong>Reference:</strong> URL of this document</t>
          <t><strong>Registrant Name and Email Address:</strong> See the author of this document</t>
          <t><strong>TLDs:</strong> Any</t>
          <t><strong>IPR Disclosure:</strong> None</t>
          <t><strong>Status:</strong> Active</t>
          <t><strong>Notes:</strong> None</t>
        </list>
      </section>
    </section>

    <section anchor="formal-specification" title="Formal specification">
      <figure>
        <artwork>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;schema xmlns:ttl="urn:ietf:params:xml:ns:ttl-1.0"&gt;
  &lt;annotation&gt;
    &lt;documentation&gt;
      Extensible Provisioning Protocol v1.0 domain name
      extension schema for Time-To-Live (TTL) modification
      in all DNS responses for a domain name including
      delegation (NS) records and any address (A) records.
    &lt;/documentation&gt;
  &lt;/annotation&gt;

  &lt;!-- Child elements found in EPP commands --&gt;
  &lt;element name="create" type="ttl:ttlType"/&gt;
  &lt;element name="update" type="ttl:ttlType"/&gt;

  &lt;!-- Child elements found in EPP responses --&gt;
  &lt;element name="infData" type="ttl:ttlType"/&gt;

  &lt;complexType name="ttlType"&gt;
    &lt;sequence&gt;
    &lt;element name="secs" type="ttl:nonNegativeInteger"/&gt;
    &lt;element name="until" type="dateTime" minoccurs="0"/&gt;
    &lt;/sequence&gt;
  &lt;/complexType&gt;

  &lt;simpleType name="nonNegativeInteger"&gt;
    &lt;restriction base="nonNegativeInteger"&gt;
      &lt;minInclusive value="1"/&gt;
      &lt;maxInclusive value="4294967295"/&gt;
    &lt;/restriction&gt;
  &lt;/simpleType&gt;

  &lt;/schema&gt;</artwork>
      </figure>
    </section>
  </middle>

  <back>
    <references title="Normative references">
      &RFC2119;
      &RFC3688;
      &RFC5731;
      &RFC5732;
      &RFC7451;      
      &RFC8499;
      &RFC8590;
    </references>
    <references title="Informative references">
      &RFC6927;
    </references>
  </back>
</rfc>
