1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-12 17:07:23 +01:00

secondary nameserver check fails if domain has custom DNS (round-robin) multiple A records

fixes #834
This commit is contained in:
Joshua Tauberer
2016-12-07 06:58:51 -05:00
parent cd717ec94e
commit 99d0afd650
2 changed files with 4 additions and 4 deletions

View File

@@ -881,10 +881,10 @@ def set_secondary_dns(hostnames, env):
return do_dns_update(env)
def get_custom_dns_record(custom_dns, qname, rtype):
def get_custom_dns_records(custom_dns, qname, rtype):
for qname1, rtype1, value in custom_dns:
if qname1 == qname and rtype1 == rtype:
return value
yield value
return None
########################################################################