Commits

George Notaras committed aa11a1b

Fixed bug: Strings in TXT and SPF records are split using ``;`` as delimiter.

  • Participants
  • Parent commits cb1e142

Comments (0)

Files changed (1)

File src/powerdns_manager/utils.py

             rdtype = dns.rdatatype._by_text.get('TXT')
             rdataset = zone.find_rdataset(record_name, rdtype=rdtype, create=True)
             rdata = dns.rdtypes.ANY.TXT.TXT(rdclass, rdtype,
-                strings = rr.content.split()
+                strings = rr.content.split(';')
             )
             rdataset.add(rdata, ttl=int(rr.ttl))
         
             rdtype = dns.rdatatype._by_text.get('SPF')
             rdataset = zone.find_rdataset(record_name, rdtype=rdtype, create=True)
             rdata = dns.rdtypes.ANY.SPF.SPF(rdclass, rdtype,
-                strings = rr.content.split()
+                strings = rr.content.split(';')
             )
             rdataset.add(rdata, ttl=int(rr.ttl))