Skip to content

Commit 6319efb

Browse files
nordurljosahvidaTillverka
authored andcommittedJan 18, 2021
Bump TTL for NS records to 1800 (30 min) to 86400 (1 day) as some registries require this (mail-in-a-box#1892)
Co-authored-by: Nicolas North [norðurljósahviða] <nz@tillverka.xyz>
1 parent bab0375 commit 6319efb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎management/dns_update.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -470,14 +470,14 @@ def write_nsd_zone(domain, zonefile, records, env, force):
470470

471471
zone = """
472472
$ORIGIN {domain}.
473-
$TTL 1800 ; default time to live
473+
$TTL 86400 ; default time to live
474474
475475
@ IN SOA ns1.{primary_domain}. hostmaster.{primary_domain}. (
476476
__SERIAL__ ; serial number
477477
7200 ; Refresh (secondary nameserver update interval)
478-
1800 ; Retry (when refresh fails, how often to try again)
478+
86400 ; Retry (when refresh fails, how often to try again)
479479
1209600 ; Expire (when refresh fails, how long secondary nameserver will keep records around anyway)
480-
1800 ; Negative TTL (how long negative responses are cached)
480+
86400 ; Negative TTL (how long negative responses are cached)
481481
)
482482
"""
483483

0 commit comments

Comments
 (0)
Please sign in to comment.