Merge "PowerDNS - Correctly quote TXT and SPF record"

This commit is contained in:
Jenkins 2013-08-22 10:39:04 +00:00 committed by Gerrit Code Review
commit a96e345e7a

View File

@ -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):