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

...but then also have to compare against the intended IP address, which might have a custom override, see #582

This commit is contained in:
Joshua Tauberer
2015-11-03 12:06:03 +00:00
parent 3bc38c89ab
commit 3fd1279e7d
2 changed files with 17 additions and 5 deletions

View File

@@ -851,6 +851,12 @@ def set_secondary_dns(hostnames, env):
return do_dns_update(env)
def get_custom_dns_record(custom_dns, qname, rtype):
for qname1, rtype1, value in custom_dns:
if qname1 == qname and rtype1 == rtype:
return value
return None
########################################################################
def justtestingdotemail(domain, records):