diff --git a/management/dns_update.py b/management/dns_update.py index fb00854f..77e9c810 100755 --- a/management/dns_update.py +++ b/management/dns_update.py @@ -691,7 +691,7 @@ def set_custom_dns_record(qname, rtype, value, env): v = ipaddress.ip_address(value) if rtype == "A" and not isinstance(v, ipaddress.IPv4Address): raise ValueError("That's an IPv6 address.") if rtype == "AAAA" and not isinstance(v, ipaddress.IPv6Address): raise ValueError("That's an IPv4 address.") - elif rtype in ("CNAME", "TXT", "SRV"): + elif rtype in ("CNAME", "TXT", "SRV", "MX"): # anything goes pass else: diff --git a/management/templates/custom-dns.html b/management/templates/custom-dns.html index b866a357..28e701ef 100644 --- a/management/templates/custom-dns.html +++ b/management/templates/custom-dns.html @@ -35,6 +35,7 @@ +