1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00

Add AAAA records for ns1/ns2

Merges branch 'patch-1' of https://github.com/sfPlayer1/mailinabox
This commit is contained in:
Joshua Tauberer 2014-07-18 11:12:13 +00:00
commit 37fcc5b53d

View File

@ -143,6 +143,9 @@ def build_zone(domain, all_domains, additional_records, env, is_zone=True):
# is managed outside of the box. # is managed outside of the box.
records.append(("ns1", "A", env["PUBLIC_IP"], False)) records.append(("ns1", "A", env["PUBLIC_IP"], False))
records.append(("ns2", "A", env["PUBLIC_IP"], False)) records.append(("ns2", "A", env["PUBLIC_IP"], False))
if env.get('PUBLIC_IPV6'):
records.append(("ns1", "AAAA", env["PUBLIC_IPV6"], False))
records.append(("ns2", "AAAA", env["PUBLIC_IPV6"], False))
# Set the A/AAAA records. Do this early for the PRIMARY_HOSTNAME so that the user cannot override them # Set the A/AAAA records. Do this early for the PRIMARY_HOSTNAME so that the user cannot override them
# and we can provide different explanatory text. # and we can provide different explanatory text.