Trees | Indices | Help |
|
---|
|
Class implementing resolver and hostname functionality.
|
|||
|
|
|||
|
|||
|
|
|||
str |
|
||
str |
|
|
|||
_VALID_NAME_RE = re.compile("^[a-z0-9._-]{1,255}$")
|
|
Initialize the host name object. If the name argument is None, it will use this system's name.
|
Return fqdn. If hostname is None the system's fqdn is returned.
|
Return IP address of given hostname. Supports both IPv4 and IPv6.
|
Validate and normalize the given hostname.
Attention: the validation is a bit more relaxed than the standards require; most importantly, we allow underscores in names |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 24 16:51:27 2012 | http://epydoc.sourceforge.net |