DNS Names.
|
EmptyLabel
A DNS label is empty.
|
|
BadEscape
An escaped code in a text format of DNS name is invalid.
|
|
BadPointer
A DNS compression pointer points forward instead of backward.
|
|
BadLabelType
The label type in DNS name wire format is unknown.
|
|
NeedAbsoluteNameOrOrigin
An attempt was made to convert a non-absolute name to wire when
there was also a non-absolute (or missing) origin.
|
|
NameTooLong
A DNS name is > 255 octets long.
|
|
LabelTooLong
A DNS label is > 63 octets long.
|
|
AbsoluteConcatenation
An attempt was made to append anything other than the empty name to
an absolute DNS name.
|
|
NoParent
An attempt was made to get the parent of the root name or the empty
name.
|
|
NoIDNA2008
IDNA 2008 processing was requested but the idna module is not
available.
|
|
IDNAException
IDNA processing raised an exception.
|
|
IDNACodec
Abstract base class for IDNA encoder/decoders.
|
|
IDNA2003Codec
IDNA 2003 encoder/decoder.
|
|
IDNA2008Codec
IDNA 2008 encoder/decoder.
|
|
Name
A DNS name.
|
string
|
|
|
_validate_labels(labels)
Check for empty labels in the middle of a label sequence, labels that
are too long, and for too many labels. |
source code
|
|
|
|
dns.name.Name object
|
|
dns.name.Name object
|
|
(dns.name.Name object, int) tuple
|
|
|
have_idna_2008 = True
|
|
maxint = 9223372036854775807
|
|
NAMERELN_NONE = 0
|
|
NAMERELN_SUPERDOMAIN = 1
|
|
NAMERELN_SUBDOMAIN = 2
|
|
NAMERELN_EQUAL = 3
|
|
NAMERELN_COMMONANCESTOR = 4
|
|
_escaped = bytearray(b'"().;\\@$')
|
|
IDNA_2003_Practical = IDNA2003Codec(False)
|
|
IDNA_2003_Strict = IDNA2003Codec(True)
|
|
IDNA_2003 = IDNA2003Codec(False)
|
|
IDNA_2008_Practical = IDNA2008Codec(True, False, True, False)
|
|
IDNA_2008_UTS_46 = IDNA2008Codec(True, False, False, False)
|
|
IDNA_2008_Strict = IDNA2008Codec(False, False, False, True)
|
|
IDNA_2008_Transitional = IDNA2008Codec(True, True, False, False)
|
|
IDNA_2008 = IDNA2008Codec(True, False, True, False)
|
dns.name.Name object
|
root = <DNS name .>
The DNS root name.
|
dns.name.Name object
|
empty = <DNS name @>
The empty DNS name.
|
|
__package__ = ' dns '
|