diff --git a/core/src/main/java/google/registry/model/tld/Registry.java b/core/src/main/java/google/registry/model/tld/Registry.java index adf295ef6..6a66c2a27 100644 --- a/core/src/main/java/google/registry/model/tld/Registry.java +++ b/core/src/main/java/google/registry/model/tld/Registry.java @@ -275,6 +275,26 @@ public class Registry extends ImmutableObject implements Buildable, UnsafeSerial } } + /** + * The time to live for DNS A and AAAA records. + * + *
When this field is null, the "dnsDefaultATtl" value from the config file will be used. + */ + Duration dnsAPlusAaaaTtl; + + /** + * The time to live for DNS NS records. + * + *
When this field is null, the "dnsDefaultNsTtl" value from the config file will be used. + */ + Duration dnsNsTtl; + + /** + * The time to live for DNS DS records. + * + *
When this field is null, the "dnsDefaultDsTtl" value from the config file will be used.
+ */
+ Duration dnsDsTtl;
/**
* The unicode-aware representation of the TLD associated with this {@link Registry}.
*
@@ -647,6 +667,21 @@ public class Registry extends ImmutableObject implements Buildable, UnsafeSerial
return numDnsPublishLocks;
}
+ /** Returns the time to live for A and AAAA records. */
+ public Duration getDnsAPlusAaaaTtl() {
+ return dnsAPlusAaaaTtl;
+ }
+
+ /** Returns the time to live for NS records. */
+ public Duration getDnsNsTtl() {
+ return dnsNsTtl;
+ }
+
+ /** Returns the time to live for DS records. */
+ public Duration getDnsDsTtl() {
+ return dnsDsTtl;
+ }
+
public ImmutableSet