From 2fd897ec517c11ed5cf922dbb089fee5ba328c1a Mon Sep 17 00:00:00 2001 From: yodax Date: Wed, 12 Apr 2017 14:25:58 +0200 Subject: [PATCH] Add support for adding a manual CAA record --- 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..f885fbba 100644 --- a/management/templates/custom-dns.html +++ b/management/templates/custom-dns.html @@ -33,6 +33,7 @@