From da5fae1410608f97074e2eb0d6756e0f8d17309b Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Wed, 21 Aug 2013 14:43:44 +0100 Subject: [PATCH] PowerDNS - Correctly quote TXT and SPF record Change-Id: I2064fcca9c920f435676cd35edf7ca6f76346956 --- designate/backend/impl_powerdns/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/designate/backend/impl_powerdns/__init__.py b/designate/backend/impl_powerdns/__init__.py index 4b04b26aa..6e4eb89e1 100644 --- a/designate/backend/impl_powerdns/__init__.py +++ b/designate/backend/impl_powerdns/__init__.py @@ -294,6 +294,9 @@ class PowerDNSBackend(base.Backend): if type in ('CNAME', 'MX', 'SRV', 'NS', 'PTR'): return content.rstrip('.') + if type in ('TXT', 'SPF'): + return '"%s"' % content.replace('"', '\\"') + return content def _build_soa_content(self, domain, servers):