+2006-04-25 Bob Halley <halley@nominum.com>
+
+ * dns/rrset.py (RRset.to_rdataset): Added a convenience method
+ to convert an rrset into an rdataset.
+
2006-03-27 Bob Halley <halley@dnspython.org>
* Added dns.e164.query(). This function can be used to look for
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