summaryrefslogtreecommitdiff
path: root/doc/rdata-class.rst
blob: 723c706682960adf71e8ddae29219b5da2a72cbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.. _rdata-class:

DNS Rdata Base Class
====================

All Rdata objects are instances of some subclass of
``dns.rdata.Rdata``, and are immutable.  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: