diff --git a/network/cloudflare_dns.py b/network/cloudflare_dns.py index 8772c2ac659..3e5ba50b522 100644 --- a/network/cloudflare_dns.py +++ b/network/cloudflare_dns.py @@ -438,7 +438,7 @@ class CloudflareAPI(object): "port": params['port'], "weight": params['weight'], "priority": params['priority'], - "name": params['record'], + "name": params['record'][:-len('.' + params['zone'])], "proto": params['proto'], "service": params['service'] }