diff options
Diffstat (limited to 'dns')
| -rw-r--r-- | dns/rrset.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dns/rrset.py b/dns/rrset.py index f9b8736..185ec6e 100644 --- a/dns/rrset.py +++ b/dns/rrset.py @@ -107,6 +107,13 @@ class RRset(dns.rdataset.Rdataset): return super(RRset, self).to_wire(self.name, file, compress, origin, self.deleting, **kw) + def to_rdataset(self): + """Convert an RRset into an Rdataset. + + #rtype: dns.rdataset.Rdataset object + """ + return dns.rdataset.from_rdata_list(self.ttl, list(self)) + def from_text_list(name, ttl, rdclass, rdtype, text_rdatas): """Create an RRset with the specified name, TTL, class, and type, and with |
