From d2b720431945175000671dbae750d5eed7b6b3fe Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Sun, 30 Apr 2017 14:58:00 +0200 Subject: [PATCH] Add support for adding a custom "CAA" DNS record (#1155) --- management/dns_update.py | 2 +- management/templates/custom-dns.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/management/dns_update.py b/management/dns_update.py index 6c16add1..b3764f7f 100755 --- a/management/dns_update.py +++ b/management/dns_update.py @@ -767,7 +767,7 @@ def set_custom_dns_record(qname, rtype, value, action, env): v = ipaddress.ip_address(value) # raises a ValueError if there's a problem 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", "MX", "SSHFP"): + elif rtype in ("CNAME", "TXT", "SRV", "MX", "SSHFP", "CAA"): # anything goes pass else: diff --git a/management/templates/custom-dns.html b/management/templates/custom-dns.html index ec010001..ac530cd2 100644 --- a/management/templates/custom-dns.html +++ b/management/templates/custom-dns.html @@ -33,6 +33,7 @@