Bump TTL for NS records to 1800 (30 min) to 86400 (1 day) as some registries require this (#1892)

Co-authored-by: Nicolas North [norðurljósahviða] <nz@tillverka.xyz>
This commit is contained in:
Nicolas North 2021-01-03 23:57:54 +01:00 committed by GitHub
parent 7a5d729a53
commit 8025c41ee4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -470,14 +470,14 @@ def write_nsd_zone(domain, zonefile, records, env, force):
zone = """
$ORIGIN {domain}.
$TTL 1800 ; default time to live
$TTL 86400 ; default time to live
@ IN SOA ns1.{primary_domain}. hostmaster.{primary_domain}. (
__SERIAL__ ; serial number
7200 ; Refresh (secondary nameserver update interval)
1800 ; Retry (when refresh fails, how often to try again)
86400 ; Retry (when refresh fails, how often to try again)
1209600 ; Expire (when refresh fails, how long secondary nameserver will keep records around anyway)
1800 ; Negative TTL (how long negative responses are cached)
86400 ; Negative TTL (how long negative responses are cached)
)
"""