The parsing of *.rpl files failed on reading DS records because the
algorithm identifier is a string rather than a number.
import dns.message
import dns.rrset
import dns.rcode
+import dns.dnssec
class Entry:
"""
rdtype = args.pop(0)
rr = dns.rrset.from_text(owner, ttl, rdclass, rdtype)
if len(args) > 0:
+ if (rr.rdtype == dns.rdatatype.DS):
+ # convert textual algorithm identifier to number
+ args[1] = str(dns.dnssec.algorithm_from_text(args[1]))
rd = dns.rdata.from_text(rr.rdclass, rr.rdtype, ' '.join(args), origin=dns.name.from_text(self.origin), relativize=False)
rr.add(rd)
return rr