mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-25 02:47:04 +00:00
Add IPv6 glue records as well
The dns_update script didn't generate IPv6 (AAAA) glue records for the name servers. This caused http://dnscheck.pingdom.com to complain about a mismatch between the glue records reported by the parent name server and mailinabox nsd. Here's the failing dnscheck output for reference: > Checking glue for ns1.my.domain.tld (1.2.3.4). > Child glue for bgwe.eu found: ns1.my.domain.tld (1.2.3.4) > Checking glue for ns1.my.domain.tld (1234::1). > Missing glue at child: ns1.my.domain.tld > Checking glue for ns2.my.domain.tld (1.2.3.4). > Child glue for bgwe.eu found: ns2.my.domain.tld (1.2.3.4) > Checking glue for ns2.my.domain.tld (1234::1). > Missing glue at child: ns2.my.domain.tld I'm not very familiar with Python and DNS, please verify ;)
This commit is contained in:
parent
42c891032d
commit
0e893626c8
@ -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"]))
|
||||||
|
records.append(("ns2", "AAAA", env["PUBLIC_IPV6"]))
|
||||||
|
|
||||||
# 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.
|
||||||
|
Loading…
Reference in New Issue
Block a user