diff options
author | Bob Halley <halley@dnspython.org> | 2017-01-05 06:45:13 -0800 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2017-01-05 06:45:13 -0800 |
commit | 862d8d7c4d87726c305766d627de1951c78d847c (patch) | |
tree | f2cec9b9729f6de1d8cb032ed2f8f3cc5dea2d76 /doc/rdata-class.rst | |
parent | 16bf0c46c1df1c979f957ea928ca0df51a4a4e5f (diff) | |
download | dnspython-862d8d7c4d87726c305766d627de1951c78d847c.tar.gz |
rdata doco
Diffstat (limited to 'doc/rdata-class.rst')
-rw-r--r-- | doc/rdata-class.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/rdata-class.rst b/doc/rdata-class.rst new file mode 100644 index 0000000..fbe0004 --- /dev/null +++ b/doc/rdata-class.rst @@ -0,0 +1,14 @@ +.. _rdata-class: + +DNS Rdata Base Class +==================== + +All Rdata objects are instances of some subclass of ``dns.rdata.Rdata``. +The Rdata factory functions described in :ref:`rdata-make` will create +objects which are instances of the most appropriate subclass. For example, +a AAAA record will be an instance of the ``dns.rdtypes.IN.AAAA`` class, +but a record of TYPE12345, which we don't know anything specific about, +will be an instance of ``dns.rdata.GenericRdata``. + +.. autoclass:: dns.rdata.Rdata + :members: |