Home | Trees | Indices | Help |
|
---|
|
DNS Rdata Classes.
|
|||
UnknownRdataclass A DNS class is unknown. |
|
|||
|
|||
|
|||
|
|
|||
RESERVED0 = 0
|
|||
IN = 1
|
|||
CH = 3
|
|||
HS = 4
|
|||
NONE = 254
|
|||
ANY = 255
|
|||
_by_text =
|
|||
_by_value =
|
|||
_metaclasses =
|
|||
_unknown_class_pattern = re.compile(r'
|
|||
__package__ =
|
|
Convert text into a DNS rdata class value. The input text can be a defined DNS RR class mnemonic or instance of the DNS generic class syntax. For example, "IN" and "CLASS1" will both result in a value of 1. Raises ``dns.rdatatype.UnknownRdataclass`` if the class is unknown. Raises ``ValueError`` if the rdata class value is not >= 0 and <= 65535. Returns an ``int``. |
Convert a DNS rdata type value to text. If the value has a known mnemonic, it will be used, otherwise the DNS generic class syntax will be used. Raises ``ValueError`` if the rdata class value is not >= 0 and <= 65535. Returns a ``str``. |
True if the specified class is a metaclass. The currently defined metaclasses are ANY and NONE. *rdclass* is an ``int``. |
|
_by_text
|
_by_value
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Dec 8 10:59:54 2018 | http://epydoc.sourceforge.net |