Home | Trees | Indices | Help |
|
---|
|
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 |
|
||
|
|||
|
|||
|
|||
|
|||
|
|
Escape the characters in label which need it.
|
Check for empty labels in the middle of a label sequence, labels that are too long, and for too many labels. Raises ``dns.name.NameTooLong`` if the name as a whole is too long. Raises ``dns.name.EmptyLabel`` if a label is empty (i.e. the root label) and appears in a position other than the end of the label sequence |
If label is ``text``, convert it to ``binary``. If it is already ``binary`` just return it. |
Convert unicode text into a Name object. Labels are encoded in IDN ACE form according to rules specified by the IDNA codec. *text*, a ``text``, is the text to convert into a name. *origin*, a ``dns.name.Name``, specifies the origin to append to non-absolute names. The default is the root name. *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA encoder/decoder. If ``None``, the default IDNA 2003 encoder/decoder is used. Returns a ``dns.name.Name``. |
Convert text into a Name object. *text*, a ``text``, is the text to convert into a name. *origin*, a ``dns.name.Name``, specifies the origin to append to non-absolute names. The default is the root name. *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA encoder/decoder. If ``None``, the default IDNA 2003 encoder/decoder is used. Returns a ``dns.name.Name``. |
Convert possibly compressed wire format into a Name. *message* is a ``binary`` containing an entire DNS message in DNS wire form. *current*, an ``int``, is the offset of the beginning of the name from the start of the message Raises ``dns.name.BadPointer`` if a compression pointer did not point backwards in the message. Raises ``dns.name.BadLabelType`` if an invalid label type was encountered. Returns a ``(dns.name.Name, int)`` tuple consisting of the name that was read and the number of bytes of the wire format message which were consumed reading it. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Dec 8 10:59:54 2018 | http://epydoc.sourceforge.net |