mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
set the DNS TTL to 30 minutes rather than 1 day
Also updating the values for secondary DNS, but we're not set up for secondary DNS so it won't matter. see #172
This commit is contained in:
parent
3853e8dd93
commit
7a449c76a1
@ -331,23 +331,27 @@ def build_sshfp_records():
|
|||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
def write_nsd_zone(domain, zonefile, records, env, force):
|
def write_nsd_zone(domain, zonefile, records, env, force):
|
||||||
# We set the administrative email address for every domain to domain_contact@[domain.com].
|
|
||||||
# You should probably create an alias to your email address.
|
|
||||||
|
|
||||||
# On the $ORIGIN line, there's typically a ';' comment at the end explaining
|
# On the $ORIGIN line, there's typically a ';' comment at the end explaining
|
||||||
# what the $ORIGIN line does. Any further data after the domain confuses
|
# what the $ORIGIN line does. Any further data after the domain confuses
|
||||||
# ldns-signzone, however. It used to say '; default zone domain'.
|
# ldns-signzone, however. It used to say '; default zone domain'.
|
||||||
|
|
||||||
|
# The SOA contact address for all of the domains on this system is hostmaster
|
||||||
|
# @ the PRIMARY_HOSTNAME. Hopefully that's legit.
|
||||||
|
|
||||||
|
# For the refresh through TTL fields, a good reference is:
|
||||||
|
# http://www.peerwisdom.org/2013/05/15/dns-understanding-the-soa-record/
|
||||||
|
|
||||||
|
|
||||||
zone = """
|
zone = """
|
||||||
$ORIGIN {domain}.
|
$ORIGIN {domain}.
|
||||||
$TTL 86400 ; default time to live
|
$TTL 1800 ; default time to live
|
||||||
|
|
||||||
@ IN SOA ns1.{primary_domain}. hostmaster.{primary_domain}. (
|
@ IN SOA ns1.{primary_domain}. hostmaster.{primary_domain}. (
|
||||||
__SERIAL__ ; serial number
|
__SERIAL__ ; serial number
|
||||||
28800 ; Refresh
|
7200 ; Refresh (secondary nameserver update interval)
|
||||||
7200 ; Retry
|
1800 ; Retry (when refresh fails, how often to try again)
|
||||||
864000 ; Expire
|
1209600 ; Expire (when refresh fails, how long secondary nameserver will keep records around anyway)
|
||||||
86400 ; Min TTL
|
1800 ; Negative TTL (how long negative responses are cached)
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user