Commit 6558f05d authored by Ben Schumacher's avatar Ben Schumacher

Give the DNS update tool the ability to customize MX records. Useful if you...

Give the DNS update tool the ability to customize MX records. Useful if you want a subdomain to send mail to another host.
parent 1be0f39b
...@@ -691,7 +691,7 @@ def set_custom_dns_record(qname, rtype, value, env): ...@@ -691,7 +691,7 @@ def set_custom_dns_record(qname, rtype, value, env):
v = ipaddress.ip_address(value) v = ipaddress.ip_address(value)
if rtype == "A" and not isinstance(v, ipaddress.IPv4Address): raise ValueError("That's an IPv6 address.") 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.") 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 # anything goes
pass pass
else: else:
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<option value="AAAA" data-hint="Enter an IPv6 address.">AAAA (IPv6 address)</option> <option value="AAAA" data-hint="Enter an IPv6 address.">AAAA (IPv6 address)</option>
<option value="CNAME" data-hint="Enter another domain name followed by a period at the end (e.g. mypage.github.io.).">CNAME (DNS forwarding)</option> <option value="CNAME" data-hint="Enter another domain name followed by a period at the end (e.g. mypage.github.io.).">CNAME (DNS forwarding)</option>
<option value="TXT" data-hint="Enter arbitrary text.">TXT (text record)</option> <option value="TXT" data-hint="Enter arbitrary text.">TXT (text record)</option>
<option value="MX" data-hint="Enter record in the form of PRIORIY DOMAIN., including trailing period (e.g. 20 mx.example.com.).">MX (mail exchanger)</option>
</select> </select>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment