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

secondary NS status checks in 3b91bc2c0a should not be skipped if the target IP address has been modified by a custom record

see #582
This commit is contained in:
Joshua Tauberer 2015-11-03 06:48:04 -05:00
parent 4995cebc38
commit 3bc38c89ab

View File

@ -402,9 +402,8 @@ def check_dns_zone(domain, env, output, dns_zonefiles):
control panel to set the nameservers to %s.""" control panel to set the nameservers to %s."""
% (existing_ns, correct_ns) ) % (existing_ns, correct_ns) )
# If the user is probably not using external DNS... # Check that each custom secondary nameserver resolves the IP address.
if ip == env['PUBLIC_IP'] and custom_secondary_ns: if custom_secondary_ns:
# Check that each custom secondary nameserver resolves the IP address.
for ns in custom_secondary_ns: for ns in custom_secondary_ns:
# We must first resolve the nameserver to an IP address so we can query it. # We must first resolve the nameserver to an IP address so we can query it.
ns_ip = query_dns(ns, "A") ns_ip = query_dns(ns, "A")