Home | Trees | Indices | Help |
|
---|
|
object --+ | Name
A DNS name.
The dns.name.Name class represents a DNS name as a tuple of labels. Instances of the class are immutable.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
bool |
|
||
int |
|
||
|
|||
bool |
|
||
bool |
|
||
dns.name.Name object |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
string |
|
||
string |
|
||
string |
|
||
|
|||
int |
|
||
|
|||
|
|||
|
|||
|
|||
tuple |
|
||
dns.name.Name object |
|
||
dns.name.Name object |
|
||
dns.name.Name object |
|
||
dns.name.Name object |
|
||
dns.name.Name object |
|
||
Inherited from |
|
|||
labels The tuple of labels in the name. |
|
|||
Inherited from |
|
Initialize a domain name from a list of labels.
|
x.__setattr__('name', value) <==> x.name = value
|
Is this name wild? (I.e. Is the least significant label '*'?)
|
Return a case-insensitive hash of the name.
|
Compare two names, returning a 3-tuple (relation, order, nlabels). relation describes the relation ship between the names, and is one of: dns.name.NAMERELN_NONE, dns.name.NAMERELN_SUPERDOMAIN, dns.name.NAMERELN_SUBDOMAIN, dns.name.NAMERELN_EQUAL, or dns.name.NAMERELN_COMMONANCESTOR order is < 0 if self < other, > 0 if self > other, and == 0 if self == other. A relative name is always less than an absolute name. If both names have the same relativity, then the DNSSEC order relation is used to order them. nlabels is the number of significant labels that the two names have in common. |
Is self a subdomain of other? The notion of subdomain includes equality.
|
Is self a superdomain of other? The notion of subdomain includes equality.
|
repr(x)
|
str(x)
|
Convert name to text format.
|
Convert name to Unicode text format. IDN ACE labels are converted to Unicode.
|
Convert name to a format suitable for digesting in hashes. The name is canonicalized and converted to uncompressed wire format.
|
Convert name to wire format, possibly compressing it.
|
Split a name into a prefix and suffix at depth.
|
Return a new name which is the concatenation of self and other.
|
If self is a subdomain of origin, return a new name which is self relative to origin. Otherwise return self.
|
If self is a relative name, return a new name which is the concatenation of self and origin. Otherwise return self.
|
Return a name with the relativity desired by the caller. If origin is None, then self is returned. Otherwise, if relativize is true the name is relativized, and if relativize is false the name is derelativized.
|
Return the parent of the name.
|
|
labelsThe tuple of labels in the name. Each label is a string of up to 63 octets. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri May 27 09:13:38 2016 | http://epydoc.sourceforge.net |