blob: cec5d46beca7c09be08c347c000bb754a06a35e0 (
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
|
.. _name-class:
The dns.name.Name Class and Predefined Names
--------------------------------------------
.. autoclass:: dns.name.Name
:members:
:inherited-members:
.. attribute:: labels
A tuple of ``bytes`` in DNS wire format specifying the DNS
labels in the name, in order from least-significant label
(i.e. farthest from the origin) to most-significant label.
.. method:: __init__(labels)
Initialize a name using *labels*, an iterable of ``bytes`` or ``str``.
.. data:: dns.name.root
The root name, i.e. ``dns.name.Name([b''])``.
.. data:: dns.name.empty
The empty name, i.e. ``dns.name.Name([])``.
|