rdata-class.rst 521 B

1234567891011121314
  1. .. _rdata-class:
  2. DNS Rdata Base Class
  3. ====================
  4. All Rdata objects are instances of some subclass of ``dns.rdata.Rdata``.
  5. The Rdata factory functions described in :ref:`rdata-make` will create
  6. objects which are instances of the most appropriate subclass. For example,
  7. a AAAA record will be an instance of the ``dns.rdtypes.IN.AAAA`` class,
  8. but a record of TYPE12345, which we don't know anything specific about,
  9. will be an instance of ``dns.rdata.GenericRdata``.
  10. .. autoclass:: dns.rdata.Rdata
  11. :members: