-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdraft.xml.in
More file actions
1444 lines (1302 loc) · 53.7 KB
/
draft.xml.in
File metadata and controls
1444 lines (1302 loc) · 53.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE rfc [
<!ENTITY nbsp " ">
<!ENTITY zwsp "​">
<!ENTITY nbhy "‑">
<!ENTITY wj "⁠">
]>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-regext-epp-ttl-18" number="9803" ipr="trust200902" submissionType="IETF" consensus="true" tocInclude="true" tocDepth="4" symRefs="true" sortRefs="true" updates="" obsoletes="" version="3" xml:lang="en">
<front>
<title abbrev="TTL Mapping for EPP">Extensible Provisioning Protocol (EPP) Mapping for DNS Time-to-Live (TTL) Values</title>
<seriesInfo name="RFC" value="9803"/>
<author fullname="Gavin Brown">
<organization>ICANN</organization>
<address>
<postal>
<street>12025 Waterfront Drive, Suite 300</street>
<city>Los Angeles</city>
<region>CA</region>
<code>90292</code>
<country>United States of America</country>
</postal>
<email>gavin.brown@icann.org</email>
<uri>https://www.icann.org/</uri>
</address>
</author>
<date month="June" year="2025"/>
<area>ART</area>
<workgroup>regext</workgroup>
<!-- [rfced] Please insert any keywords (beyond those that appear in
the title) for use on https://www.rfc-editor.org/search. -->
<!-- GB: done. -->
<keyword>EPP</keyword>
<keyword>DNS</keyword>
<keyword>TTL</keyword>
<keyword>time-to-live</keyword>
<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>
<name>Introduction</name>
<t>
The principal output of any domain name registry 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 typically
include one or more <tt>NS</tt> records, but may also include
<tt>DS</tt> records for domains secured with DNSSEC <xref
target="RFC9364"/>, and <tt>DNAME</tt> records for Internationalized Domain Name (IDN) variants <xref
target="RFC6927"/>. <tt>A</tt> and/or <tt>AAAA</tt> records may also
be published for nameservers where they are required by DNS resolvers
to avoid an infinite loop.</t>
<t>
Typically, the Time-to-Live (TTL) value (see <xref section="5"
sectionFormat="of" target="RFC9499"/>) 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 values used for that domain's delegation: for example, to
reduce the amount of time required to complete a change of DNS
servers, DNSSEC deployment or 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) that allows the sponsor of a domain
name or host object to change the TTL values of the resource record(s)
associated with that object. It also describes how EPP servers should
handle TTLs specified by EPP clients and how both parties coordinate
to manage TTL values in response to changes in operational or security
requirements.</t>
<section>
<name>Conventions Used in This Document</name>
<t>
The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
"<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>",
"<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>",
"<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
"<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" 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>
<t>
In this document's examples, "C:" represents lines sent by a protocol client and
"S:" represents lines returned by a protocol server. Indentation
and white space in these 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, the 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 these examples (such as the string
<tt>ttl</tt> in <tt>ttl:create</tt>) are solely for illustrative
purposes. A conforming implementation <bcp14>MUST NOT</bcp14>
require the use of these or any other specific namespace prefixes.</t>
<t>
In accordance with Section 3.2.2.1 of XML Schema Part 2: Datatypes
<xref target="XSD-DATATYPES"/>, the allowable lexical
representations for the <tt>xs:boolean</tt> datatype are the strings
"<tt>0</tt>" and "<tt>false</tt>" for the concept 'false' and the
strings "<tt>1</tt>" and "<tt>true</tt>" for the concept 'true'.
Implementations <bcp14>MUST</bcp14> support both styles of lexical
representation.</t>
</section>
<section anchor="extension-elements">
<name>Extension Elements</name>
<t>This extension adds additional elements to the EPP domain and host mappings.</t>
<section anchor="ttl_element">
<name>The <ttl:ttl> Element</name>
<t>
The <tt><ttl:ttl></tt> element is used to define TTL values
for the DNS resource records associated with domain and host
objects.
</t>
<t>
<tt><ttl:ttl></tt> elements have the optional following
attributes, depending on whether they appear in an EPP command or
response:
</t>
<!-- [rfced] We have reformatted the list below for readability; please review
and let us know if you prefer otherwise.
Original:
<ttl:ttl> elements have the optional following attributes, depending
on whether they appear in an EPP command or response:
1. "for", which is REQUIRED in both commands and responses, and
which specifies the DNS record type to which the TTL value
pertains. This attribute MUST have one of the following values:
"NS", "DS", "DNAME", "A", "AAAA" or "custom";
2. If the value of the "for" attribute is "custom", then the
<ttl:ttl> element MUST also have a "custom" attribute containing
a DNS record type conforming with the regular expression in
Section 3.1 of [RFC6895]. Additionally, the record type MUST be
registered with IANA in [IANA-RRTYPES].
3. "min", which MUST NOT be present in EPP commands but MAY be
present in EPP responses (see Section 2.1.1), and which is used
by the server to indicate the lowest value that may be set;
4. "default", which MUST NOT be present in EPP commands but MAY be
present in EPP responses (see Section 2.1.1), and which is used
by the server to indicate the default value;
5. "max", which MUST NOT be present in EPP commands but MAY be
present in EPP responses (see Section 2.1.1), and which is used
by the server to indicate the highest value that may be set;
Current:
"for"
REQUIRED in both commands and responses, and specifies the DNS
record type to which the TTL value pertains. This attribute MUST
have one of the following values: "NS", "DS", "DNAME", "A", "AAAA"
or "custom".
"custom"
If the value of the "for" attribute is "custom", then the
<ttl:ttl> element MUST also have a "custom" attribute containing a
DNS record type conforming with the regular expression in
Section 3.1 of [RFC6895]. Additionally, the record type MUST be
registered with IANA in [IANA-RRTYPES].
"min"
MUST NOT be present in EPP commands but MAY be present in EPP
responses (see Section 2.1.1). It is also used by the server to
indicate the lowest value that may be set.
"default"
MUST NOT be present in EPP commands but MAY be present in EPP
responses (see Section 2.1.1). It is also used by the server to
indicate the default value.
"max"
MUST NOT be present in EPP commands but MAY be present in EPP
responses (see Section 2.1.1). It is also used by the server to
indicate the highest value that may be set.
-->
<dl newline="true">
<dt>"<tt>for</tt>"</dt>
<dd>
<bcp14>REQUIRED</bcp14> in both commands and responses, and
specifies the DNS record type to which the TTL value pertains.
This attribute <bcp14>MUST</bcp14> have one of the following
values: "<tt>NS</tt>", "<tt>DS</tt>", "<tt>DNAME</tt>",
"<tt>A</tt>", "<tt>AAAA</tt>" or "<tt>custom</tt>".
</dd>
<dt>"<tt>custom</tt>"</dt>
<dd>If the value of the "<tt>for</tt>" attribute is
"<tt>custom</tt>", then the <tt><ttl:ttl></tt> element
<bcp14>MUST</bcp14> also have a "<tt>custom</tt>" attribute
containing a DNS record type conforming with the regular
expression in <xref sectionFormat="of" section="3.1"
target="RFC6895"/>. Additionally, the record type
<bcp14>MUST</bcp14> be registered with IANA in <xref
target="IANA-RRTYPES"/>.
</dd>
<dt>"<tt>min</tt>"</dt>
<dd>
<bcp14>MUST NOT</bcp14> be present in EPP commands but
<bcp14>MAY</bcp14> be present in EPP responses (see <xref
target="info-command"/>). It is used by the server to
indicate the lowest value that may be set.
</dd>
<dt>"<tt>default</tt>"</dt>
<dd>
<bcp14>MUST NOT</bcp14> be present in EPP commands but
<bcp14>MAY</bcp14> be present in EPP responses (see <xref
target="info-command"/>). It is used by the server to
indicate the default value.
</dd>
<dt>"<tt>max</tt>"</dt>
<dd>
<bcp14>MUST NOT</bcp14> be present in EPP commands but
<bcp14>MAY</bcp14> be present in EPP responses (see <xref
target="info-command"/>). It is used by the server to
indicate the highest value that may be set.
</dd>
</dl>
<t>
When present, the value of the "<tt>min</tt>" attribute
<bcp14>MUST</bcp14> be lower than the value of the "<tt>max</tt>"
attribute. The "<tt>default</tt>" attribute <bcp14>MUST</bcp14> be
between the "<tt>min</tt>" and "<tt>max</tt>" values, inclusively.</t>
<section anchor="element-content">
<name>Element Content</name>
<t>
The XML schema found in <xref target="formal-syntax"/> of this
document restricts the content of <tt><ttl:ttl></tt>
elements to be either:</t>
<ol>
<li>a non-negative integer, indicating the value of the TTL in seconds, or</li>
<li>empty, in which case the server's default TTL for the given record type is to be applied.</li>
</ol>
</section>
<section anchor="supported-dns-record-types">
<name>Supported DNS Record Types</name>
<t>
To facilitate forward compatibility with future changes to the
DNS protocol, this document does not enumerate or restrict the
DNS record types that can be included in the "<tt>custom</tt>"
attribute of the <tt><ttl:ttl></tt> element.</t>
<t>
The regular expression that is used to validate the values of
the "<tt>custom</tt>" attribute is based on the expression found
in <xref sectionFormat="of" section="3.1" target="RFC6895"/>,
and it is intended to match both existing and future RRTYPE
mnemonics. This eliminates the need to update this document in
the event that new DNS records that exist above a zone cut
(<xref sectionFormat="of" section="7" target="RFC9499"/>) are
specified.</t>
<t>
Nevertheless, EPP servers that implement this extension
<bcp14>MUST</bcp14> restrict the DNS record types that are
accepted in <tt><create></tt> and <tt><update></tt>
commands, and included in <tt><info></tt> responses,
allowing only those types that are (a) registered in <xref
target="IANA-RRTYPES"/> and (b) appropriate for use above a zone
cut.</t>
<t>
A server that receives a <tt><create></tt> or
<tt><update></tt> command that attempts to set TTL values
for inapplicable DNS record types <bcp14>MUST</bcp14> respond
with a 2306 "Parameter value policy" error.</t>
<t>
As an illustrative example, a server <bcp14>MAY</bcp14> allow
clients to specify TTL values for the following record types for
domain objects:
</t>
<ol>
<li>
<tt>NS</tt>;
</li>
<li>
<tt>DS</tt> (if the server also implements <xref target="RFC5910"/>);
</li>
<li>
<tt>DNAME</tt> (if the server implements IDN variants using
<tt>DNAME</tt> records).
</li>
</ol>
<section>
<name>Glue Records</name>
<t>
Glue records are described in <xref section="7"
sectionFormat="of" target="RFC9499"/>.</t>
<t>
Servers that implement host objects <xref target="RFC5732"/>
<bcp14>MAY</bcp14> allow clients to specify TTL values for
<tt>A</tt> and <tt>AAAA</tt> records for host objects.</t>
<t>
A server supporting host objects that receives a command that
attempts to set TTL values for <tt>A</tt> and <tt>AAAA</tt>
records on a domain object <bcp14>MUST</bcp14> respond with a
2306 "Parameter value policy" error.</t>
<t>
EPP servers that use the host attribute model (described in
<xref sectionFormat="of" section="1.1" target="RFC5731"/>)
<bcp14>MAY</bcp14> allow clients to specify TTL values for
<tt>A</tt> and <tt>AAAA</tt> records for domain objects.</t>
</section>
</section>
<section anchor="info-element">
<name>The <ttl:info> Element</name>
<t>
The <tt><ttl:info></tt> element is used by clients to
request that the server include additional information in
<tt><info></tt> responses for domain and host objects.</t>
<t>
It has a single <bcp14>OPTIONAL</bcp14> "<tt>policy</tt>"
attribute, which takes a boolean value with a default value of
"<tt>false</tt>".</t>
<t>
The semantics of this element are described in <xref
target="info-command"/>.</t>
<t>Below is an example of a <tt><ttl:info></tt>
element with an explicit "<tt>policy</tt>" attribute:</t>
<sourcecode type="xml"><![CDATA[
<ttl:info policy="true"/>
]]></sourcecode>
<!-- [rfced] The section titles for 1.2.1.3.1 and 1.2.2. are similar.
For clarity, which of these options do you prefer? Or, please feel
free to suggest otherwise.
a) Make the title of Section 1.2.1.3.1 more specific, or
b) Include the example in 1.2.1.3 and remove section 1.2.1.3.1, or
c) Move the example in 1.2.1.3.1 to a subsection of Section 1.2.2 ("Examples").
Original:
1.2.1.3. The <ttl:info> element
[...]
1.2.1.3.1. Example
<ttl:info policy="true"/>
1.2.2. Examples
Perhaps (if option b):
1.2.1.3. The <ttl:info> element
The <ttl:info> element is used by clients to request that the server
include additional information in <info> responses for domain and
host objects.
It has a single OPTIONAL policy attribute, which takes a boolean
value with a default value of false.
The semantics of this element are described in Section 2.1.1.
Here's an example: <ttl:info policy="true"/>
1.2.2. Examples
-->
<!-- GB: I chose Option B and made the appropriate edits. -->
</section>
</section>
<section>
<name>Examples</name>
<section>
<name>Explicit TTL Value (<create> or <update> Command)</name>
<sourcecode type="xml"><![CDATA[
<ttl:ttl for="NS">3600</ttl:ttl>
]]></sourcecode>
</section>
<section>
<name>Explicit TTL Value (<info> Policy Mode)</name>
<sourcecode type="xml"><![CDATA[
<ttl:ttl
for="NS"
min="60"
default="86400"
max="172800">3600</ttl:ttl>
]]></sourcecode>
</section>
<section>
<name>Empty Value Indicating Default TTL (<create> or <update> Command, <info> Default Mode)</name>
<sourcecode type="xml"><![CDATA[
<ttl:ttl for="NS"/>
]]></sourcecode>
</section>
<section>
<name>Custom Record Type (<create> or <update> Command, <info> Default Mode)</name>
<sourcecode type="xml"><![CDATA[
<ttl:ttl
for="custom"
custom="NEWRRTYPE">3600</ttl:ttl>
]]></sourcecode>
</section>
</section>
</section>
</section>
<section>
<name>EPP Command Mapping</name>
<section>
<name>EPP Query Commands</name>
<section anchor="info-command">
<name>EPP <info> Command</name>
<t>
This extension defines an additional element for EPP
<tt><info></tt> commands and responses for domain and host
objects.</t>
<t>
The EPP <tt><info></tt> command is extended to support two
different modes:</t>
<ol>
<li>The Default Mode (<xref target="default-mode"/>), which
requests the inclusion of all non-default TTL values in the
response; and</li>
<li>The Policy Mode (<xref target="policy-mode"/>), which requests
the inclusion of TTL information for all supported DNS record
types in the response, along with the minimum, default, and maximum
values for those records.</li>
</ol>
<section anchor="default-mode">
<name>Default Mode</name>
<t>
If a server receives an <tt><info></tt> command for a
domain or host object that includes a <tt><ttl:info></tt>
element with a "<tt>policy</tt>" attribute that is "<tt>0</tt>"
or "<tt>false</tt>", then the EPP response <bcp14>MUST</bcp14>
contain <tt><ttl:ttl></tt> records for all DNS record
types that have non-default TTL values. These elements
<bcp14>MUST NOT</bcp14> have the "<tt>min</tt>",
"<tt>default</tt>", and "<tt>max</tt>" attributes.</t>
<t>
Below is an example domain <tt><info></tt> command with a
<tt><ttl:info></tt> element with a "<tt>policy</tt>"
attribute that is "<tt>false</tt>":</t>
<sourcecode type="xml" markers="false"><![CDATA[
C: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
C: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
C: <command>
C: <info>
C: <domain:info
C: xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
C: <domain:name>example.com</domain:name>
C: </domain:info>
C: </info>
C: <extension>
C: <ttl:info
C: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0"
C: policy="false"/>
C: </extension>
C: </command>
C: </epp>
]]></sourcecode>
<t>
Below is an example domain <tt><info></tt> response to a command with
a <tt><ttl:info></tt> element with a "<tt>policy</tt>"
attribute that is "<tt>false</tt>":</t>
<sourcecode type="xml" markers="false"><![CDATA[
S: <?xml version="1.0" encoding="utf-8" standalone="no"?>
S: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
S: <response>
S: <result code="1000">
S: <msg>Command completed successfully</msg>
S: </result>
S: <resData>
S: <domain:infData
S: xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
S: <domain:name>example.com</domain:name>
S: <domain:roid>EXAMPLE1-REP</domain:roid>
S: <domain:status s="ok"/>
S: <domain:ns>
S: <domain:hostObj>ns1.example.com</domain:hostObj>
S: <domain:hostObj>ns1.example.net</domain:hostObj>
S: </domain:ns>
S: <domain:clID>ClientX</domain:clID>
S: <domain:crID>ClientX</domain:crID>
S: <domain:crDate>2023-11-08T10:14:55.0Z</domain:crDate>
S: <domain:exDate>2024-11-08T10:14:55.0Z</domain:exDate>
S: </domain:infData>
S: </resData>
S: <extension>
S: <ttl:infData
S: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0">
S: <ttl:ttl for="NS">172800</ttl:ttl>
S: <ttl:ttl for="DS">300</ttl:ttl>
S: </ttl:infData>
S: <secDNS:infData
S: xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1">
S: <secDNS:dsData>
S: <secDNS:keyTag>12345</secDNS:keyTag>
S: <secDNS:alg>13</secDNS:alg>
S: <secDNS:digestType>2</secDNS:digestType>
S: <secDNS:digest>49FD46E6C4B45C55D4AC</secDNS:digest>
S: </secDNS:dsData>
S: </secDNS:infData>
S: </extension>
S: <trID>
S: <clTRID>ABC-12345</clTRID>
S: <svTRID>54322-XYZ</svTRID>
S: </trID>
S: </response>
S: </epp>
]]></sourcecode>
<t>
Below is an example host <tt><info></tt> command with a
<ttl:info> element with a "<tt>policy</tt>" attribute that
is "<tt>false</tt>":</t>
<sourcecode type="xml" markers="false"><![CDATA[
C: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
C: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
C: <command>
C: <info>
C: <host:info
C: xmlns:host="urn:ietf:params:xml:ns:host-1.0">
C: <host:name>ns1.example.com</host:name>
C: </host:info>
C: </info>
C: <extension>
C: <ttl:info
C: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0"
C: policy="false"/>
C: </extension>
C: </command>
C: </epp>
]]></sourcecode>
<t>Below is an example host <tt><info></tt> response to a command with a
<ttl:info> element with a "<tt>policy</tt>" attribute that is
"<tt>false</tt>":</t>
<sourcecode type="xml" markers="false"><![CDATA[
S: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
S: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
S: <response>
S: <result code="1000">
S: <msg>Command completed successfully</msg>
S: </result>
S: <resData>
S: <host:infData
S: xmlns:host="urn:ietf:params:xml:ns:host-1.0">
S: <host:name>ns1.example.com</host:name>
S: <host:roid>NS1_EXAMPLE1-REP</host:roid>
S: <host:status s="ok"/>
S: <host:addr ip="v4">192.0.2.2</host:addr>
S: <host:addr ip="v6">2001:db8::8:800:200c:417a</host:addr>
S: <host:clID>ClientX</host:clID>
S: <host:crID>ClientX</host:crID>
S: <host:crDate>2023-11-08T10:14:55.0Z</host:crDate>
S: </host:infData>
S: </resData>
S: <extension>
S: <ttl:infData
S: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0">
S: <ttl:ttl for="A">172800</ttl:ttl>
S: <ttl:ttl for="AAAA">86400</ttl:ttl>
S: </ttl:infData>
S: </extension>
S: <trID>
S: <clTRID>ABC-12345</clTRID>
S: <svTRID>54322-XYZ</svTRID>
S: </trID>
S: </response>
S: </epp>
]]></sourcecode>
</section>
<section anchor="policy-mode">
<name>Policy Mode</name>
<t>
If a server receives an <tt><info></tt> command for a
domain or host object that includes a <tt><ttl:info></tt>
element with a "<tt>policy</tt>" attribute that is "<tt>1</tt>" or
"<tt>true</tt>", then the EPP response <bcp14>MUST</bcp14>
contain <tt><ttl:ttl></tt> records for all supported DNS
record types, irrespective of whether those record types are
actually in use by the object in question. These elements
<bcp14>MUST</bcp14> have the "<tt>min</tt>", "<tt>default</tt>",
and "<tt>max</tt>" attributes.</t>
<t>
Below is an example domain <tt><info></tt> command requesting the
server policies:</t>
<sourcecode type="xml" markers="false"><![CDATA[
C: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
C: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
C: <command>
C: <info>
C: <domain:info
C: xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
C: <domain:name>example.com</domain:name>
C: </domain:info>
C: </info>
C: <extension>
C: <ttl:info
C: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0"
C: policy="true"/>
C: </extension>
C: </command>
C: </epp>
]]></sourcecode>
<t>Below is an example domain <tt><info></tt> response providing the server policies:</t>
<sourcecode type="xml" markers="false"><![CDATA[
S: <?xml version="1.0" encoding="utf-8" standalone="no"?>
S: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
S: <response>
S: <result code="1000">
S: <msg>Command completed successfully</msg>
S: </result>
S: <resData>
S: <domain:infData
S: xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
S: <domain:name>example.com</domain:name>
S: <domain:roid>EXAMPLE1-REP</domain:roid>
S: <domain:status s="ok"/>
S: <domain:ns>
S: <domain:hostObj>ns1.example.com</domain:hostObj>
S: <domain:hostObj>ns1.example.net</domain:hostObj>
S: </domain:ns>
S: <domain:clID>ClientX</domain:clID>
S: <domain:crID>ClientX</domain:crID>
S: <domain:crDate>2023-11-08T10:14:55.0Z</domain:crDate>
S: <domain:exDate>2024-11-08T10:14:55.0Z</domain:exDate>
S: </domain:infData>
S: </resData>
S: <extension>
S: <ttl:infData
S: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0">
S: <ttl:ttl for="NS"
S: min="3600"
S: default="86400"
S: max="172800">172800</ttl:ttl>
S: <ttl:ttl for="DS"
S: min="60"
S: default="86400"
S: max="172800">300</ttl:ttl>
S: </ttl:infData>
S: <secDNS:infData
S: xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1">
S: <secDNS:dsData>
S: <secDNS:keyTag>12345</secDNS:keyTag>
S: <secDNS:alg>13</secDNS:alg>
S: <secDNS:digestType>2</secDNS:digestType>
S: <secDNS:digest>49FD46E6C4B45C55D4AC</secDNS:digest>
S: </secDNS:dsData>
S: </secDNS:infData>
S: </extension>
S: <trID>
S: <clTRID>ABC-12345</clTRID>
S: <svTRID>54322-XYZ</svTRID>
S: </trID>
S: </response>
S: </epp>
]]></sourcecode>
<t>Below is an example host <tt><info></tt> command requesting the server policies:</t>
<sourcecode type="xml" markers="false"><![CDATA[
C: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
C: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
C: <command>
C: <info>
C: <host:info
C: xmlns:host="urn:ietf:params:xml:ns:host-1.0">
C: <host:name>ns1.example.com</host:name>
C: </host:info>
C: </info>
C: <extension>
C: <ttl:info
C: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0"
C: policy="true"/>
C: </extension>
C: </command>
C: </epp>
]]></sourcecode>
<t>Below is an example host <tt><info></tt> response providing the server policies:</t>
<sourcecode type="xml" markers="false"><![CDATA[
S: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
S: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
S: <response>
S: <result code="1000">
S: <msg>Command completed successfully</msg>
S: </result>
S: <resData>
S: <host:infData
S: xmlns:host="urn:ietf:params:xml:ns:host-1.0">
S: <host:name>ns1.example.com</host:name>
S: <host:roid>NS1_EXAMPLE1-REP</host:roid>
S: <host:status s="ok"/>
S: <host:addr ip="v4">192.0.2.2</host:addr>
S: <host:addr ip="v6">2001:db8::8:800:200c:417a</host:addr>
S: <host:clID>ClientX</host:clID>
S: <host:crID>ClientX</host:crID>
S: <host:crDate>2023-11-08T10:14:55.0Z</host:crDate>
S: </host:infData>
S: </resData>
S: <extension>
S: <ttl:infData
S: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0">
S: <ttl:ttl for="A"
S: min="3600"
S: default="86400"
S: max="172800">172800</ttl:ttl>
S: <ttl:ttl for="AAAA"
S: min="3600"
S: default="86400"
S: max="172800">86400</ttl:ttl>
S: </ttl:infData>
S: </extension>
S: <trID>
S: <clTRID>ABC-12345</clTRID>
S: <svTRID>54322-XYZ</svTRID>
S: </trID>
S: </response>
S: </epp>
]]></sourcecode>
</section>
</section>
</section>
<section>
<name>EPP Transform Commands</name>
<section>
<name>EPP <create> Command</name>
<t>
This extension defines an additional element for EPP
<tt><create></tt> commands for domain and host objects.</t>
<t>
The <tt><command></tt> element of the
<tt><create></tt> command <bcp14>MAY</bcp14> contain an
<tt><extension></tt> element that <bcp14>MAY</bcp14>
contain a <tt><ttl:create></tt> element. This element
<bcp14>MUST</bcp14> contain one or more <tt><ttl:ttl></tt>
records as described in <xref target="extension-elements"/>.</t>
<t>If an EPP server receives a <tt><create></tt> command
containing a TTL value that is outside the server's permitted range,
it <bcp14>MUST</bcp14> reject the command with a 2004
"Parameter value range error" response.</t>
<t>
Below is an example domain <tt><create></tt> command:</t>
<sourcecode type="xml" markers="false"><![CDATA[
C: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
C: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
C: <command>
C: <create>
C: <domain:create
C: xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
C: <domain:name>example.com</domain:name>
C: <domain:period unit="y">1</domain:period>
C: <domain:ns>
C: <domain:hostObj>ns1.example.com</domain:hostObj>
C: <domain:hostObj>ns1.example.net</domain:hostObj>
C: </domain:ns>
C: <domain:authInfo>
C: <domain:pw/>
C: </domain:authInfo>
C: </domain:create>
C: </create>
C: <extension>
C: <ttl:create
C: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0">
C: <ttl:ttl for="NS">172800</ttl:ttl>
C: <ttl:ttl for="DS">300</ttl:ttl>
C: </ttl:create>
C: <secDNS:create
C: xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1">
C: <secDNS:dsData>
C: <secDNS:keyTag>12345</secDNS:keyTag>
C: <secDNS:alg>13</secDNS:alg>
C: <secDNS:digestType>2</secDNS:digestType>
C: <secDNS:digest>49FD46E6C4B45C55D4AC</secDNS:digest>
C: </secDNS:dsData>
C: </secDNS:create>
C: </extension>
C: <clTRID>ABC-12345</clTRID>
C: </command>
C: </epp>
]]></sourcecode>
<t>Below is an example host <tt><create></tt> command:</t>
<sourcecode type="xml" markers="false"><![CDATA[
C: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
C: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
C: <command>
C: <create>
C: <host:create
C: xmlns:host="urn:ietf:params:xml:ns:host-1.0">
C: <host:name>ns1.example.com</host:name>
C: <host:addr ip="v4">192.0.2.2</host:addr>
C: <host:addr ip="v6">2001:db8::8:800:200c:417a</host:addr>
C: </host:create>
C: </create>
C: <extension>
C: <ttl:create
C: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0">
C: <ttl:ttl for="A"/>
C: <ttl:ttl for="AAAA">86400</ttl:ttl>
C: </ttl:create>
C: </extension>
C: <clTRID>ABC-12345</clTRID>
C: </command>
C: </epp>
]]></sourcecode>
</section>
<section>
<name>EPP <update> Command</name>
<t>
This extension defines an additional element for EPP
<tt><update></tt> commands for domain and host objects.</t>
<t>
The <tt><command></tt> element of the
<tt><update></tt> command <bcp14>MAY</bcp14> contain an
<tt><extension></tt> element that <bcp14>MAY</bcp14>
contain a <tt><ttl:update></tt> element. This element
<bcp14>MUST</bcp14> contain one or more <tt><ttl:ttl></tt>
records as described in <xref target="extension-elements"/>.</t>
<t>
If an EPP server receives an <tt><update></tt> command
containing a TTL value that is outside the server's permitted
range, it <bcp14>MUST</bcp14> reject the command with a
2004 "Parameter value range error" response.</t>
<t>
Below is an example domain <tt><update></tt> command:</t>
<sourcecode type="xml" markers="false"><![CDATA[
C: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
C: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
C: <command>
C: <update>
C: <domain:update
C: xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
C: <domain:name>example.com</domain:name>
C: </domain:update>
C: </update>
C: <extension>
C: <ttl:update
C: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0">
C: <ttl:ttl for="NS"/>
C: <ttl:ttl for="custom"
C: custom="DELEG"/>
C: <ttl:ttl for="DS">86400</ttl:ttl>
C: </ttl:update>
C: </extension>
C: <clTRID>ABC-12345</clTRID>
C: </command>
C: </epp>
]]></sourcecode>
<t>Below is an example host <tt><update></tt> command:</t>
<sourcecode type="xml" markers="false"><![CDATA[
C: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
C: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
C: <command>
C: <update>
C: <host:update
C: xmlns:host="urn:ietf:params:xml:ns:host-1.0">
C: <host:name>ns1.example.com</host:name>
C: </host:update>
C: </update>
C: <extension>
C: <ttl:update
C: xmlns:ttl="urn:ietf:params:xml:ns:epp:ttl-1.0">
C: <ttl:ttl for="A">86400</ttl:ttl>
C: <ttl:ttl for="AAAA">3600</ttl:ttl>
C: </ttl:update>
C: </extension>
C: <clTRID>ABC-12345</clTRID>
C: </command>
C: </epp>
]]></sourcecode>
</section>
</section>
</section>
<section anchor="server-processing">
<name>Server Processing of TTL Values</name>
<section anchor="permitted-types">
<name>Permitted Record Types</name>
<t>
EPP servers <bcp14>MAY</bcp14> restrict the supported DNS record
types. For example, a server <bcp14>MAY</bcp14> allow clients to
specify TTL values for <tt>DS</tt> records only.</t>
<t>
A server that receives a <tt><create></tt> or
<tt><update></tt> command that includes a restricted record
type <bcp14>MUST</bcp14> respond with a 2306 "Parameter value
policy" error.</t>
<t>
Clients can discover the DNS record types for which an EPP server
permits TTL values to be changed by performing a Policy Mode
<tt><info></tt> command, as outlined in <xref
target="policy-mode"/>.</t>
</section>
<section anchor="using_ttl_values">
<name>Use of TTL Values in Delegation Records</name>
<t>
EPP servers that implement this extension <bcp14>SHOULD</bcp14> use
the values provided by EPP clients for the TTL values of records
published in the DNS for domain and (if supported) host objects.
Server operators <bcp14>MAY</bcp14> disregard these values in order
to address security and stability issues, as described in <xref
target="operational-considerations"/> and <xref
target="security-considerations"/>.</t>
<t>
EPP servers that use the host attribute model
<bcp14>SHOULD</bcp14> use any <tt>NS</tt>, <tt>A</tt>, and/or
<tt>AAAA</tt> TTL values specified for the domain object when
publishing <tt>NS</tt>, <tt>A</tt>, and/or <tt>AAAA</tt> records
derived from host attributes.</t>
</section>
</section>
<section anchor="oob-changes">
<name>Out-of-Band Changes to TTL Values</name>
<t>In order to address operational or security issues, EPP server
operators <bcp14>MAY</bcp14> make changes to TTL values out-of-band
(that is, not in response to an <tt><update></tt> command received
from the sponsoring client).
</t>
<t>
Server operators <bcp14>MAY</bcp14> also implement automatic reset of
TTL values, so that they revert to the default value a certain amount
of time after an update has been made.
</t>
<t>
If a TTL value is changed out-of-band, EPP server operators
<bcp14>MAY</bcp14> notify the sponsoring client using the EPP Change
Poll Extension <xref target="RFC8590"/>, which provides a
generalized method for EPP servers to notify clients of changes to
objects under their sponsorship.
</t>
</section>
<section anchor="operational-considerations">
<name>Operational Considerations</name>
<section>
<name>Operational Impact of TTL Values</name>
<t>
Registry operators must consider the balance between registrants'
desire for changes to domains to be visible in the DNS quickly, and