From 70beaa1f3d9dbda0f3dab6432aac7d5b74837e63 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 12 Feb 2020 21:29:50 +0500 Subject: [PATCH] sync DKIM record fix to CloudFlare --- plogical/dnsUtilities.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plogical/dnsUtilities.py b/plogical/dnsUtilities.py index f77de933c..5e8f5f94e 100755 --- a/plogical/dnsUtilities.py +++ b/plogical/dnsUtilities.py @@ -422,6 +422,11 @@ class DNS: @staticmethod def createDNSRecordCloudFlare(cf, zone, name, type, value, priority, ttl): try: + + if value.find('DKIM')> -1: + value = value.replace('\n\t', '') + value = value.replace('"', '') + dns_record = {'name': name, 'type': type, 'content': value, 'ttl': ttl, 'priority': priority} r = cf.zones.dns_records.post(zone, data=dns_record) except BaseException as msg: