blob: b4d9869874ddbe97f839da3e52a89a2e2628bbd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
.. _zone-class:
The dns.zone.Zone Class
-----------------------
.. autoclass:: dns.zone.Zone
:members:
.. attribute:: rdclass
The zone's rdata class, an ``int``; the default is class IN.
.. attribute:: origin
The origin of the zone, a ``dns.name.Name``.
.. attribute:: nodes
A dictionary mapping the names of nodes in the zone to the nodes
themselves.
.. attribute:: relativize
A ``bool``, which is ``True`` if names in the zone should be relativized.
A ``Zone`` has a class attribute ``node_factory`` which is used to
create new nodes and defaults to ``dns.node.Node``. ``Zone`` may be
subclassed if a different node factory is desired.
The node factory is a class or callable that returns a subclass of
``dns.node.Node``.
|