nameserver checks should be case insensitive
This commit is contained in:
parent
92acef9b87
commit
91821adfd7
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ def check_dns_zone(domain, env, dns_zonefiles):
|
|||
# at the domain name's registrar pointing to this box.
|
||||
existing_ns = query_dns(domain, "NS")
|
||||
correct_ns = "ns1.BOX; ns2.BOX".replace("BOX", env['PRIMARY_HOSTNAME'])
|
||||
if existing_ns == correct_ns:
|
||||
if existing_ns.lower() == correct_ns.lower():
|
||||
env['out'].print_ok("Nameservers are set correctly at registrar. [%s]" % correct_ns)
|
||||
else:
|
||||
env['out'].print_error("""The nameservers set on this domain are incorrect. They are currently %s. Use your domain name registar's
|
||||
|
|
Loading…
Reference in a new issue