From 6558f05d1d5c6c79fca835b65a8dc5547228d929 Mon Sep 17 00:00:00 2001 From: Ben Schumacher Date: Wed, 4 Mar 2015 13:04:38 -0500 Subject: [PATCH] Give the DNS update tool the ability to customize MX records. Useful if you want a subdomain to send mail to another host. --- management/dns_update.py | 2 +- management/templates/custom-dns.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 @@ +