twisted.names.dns._OPTHeader(tputil.FancyStrMixin, tputil.FancyEqMixin, object) class documentationtwisted.names.dns
(View In Hierarchy)
Implements interfaces: twisted.names.dns.IEncodable
An OPT record header.
| See Also | _OPTHeader.__init__for documentation of other public instance attributes. | |
| https://tools.ietf.org/html/rfc6891#section-6.1.2 | ||
| Present Since | 13.2 | |
| Instance Variable | name 0 | The DNS name associated with this record. Since this is a pseudo record, 
the name is always an Nameinstance with 
value b'', which represents the DNS root zone. This attribute is a readonly
property. | 
| Instance Variable | type 0 | The DNS record type. This is a fixed value of 41 dns.OPTfor 
OPT Record. This attribute is a readonly property. | 
| Method | __init__ | No summary | 
| Method | name | A readonly property for accessing the nameattribute of 
this record. | 
| Method | type | A readonly property for accessing the typeattribute of 
this record. | 
| Method | encode | Encode this _OPTHeaderinstance to bytes. | 
| Method | decode | Decode bytes into an _OPTHeaderinstance. | 
| Class Method | fromRRHeader | A classmethod for constructing a new _OPTHeaderfrom 
the attributes and payload of an existingRRHeaderinstance. | 
Inherited from FancyStrMixin:
| Method | __str__ | Undocumented | 
Inherited from FancyEqMixin:
| Method | __eq__ | Undocumented | 
| Method | __ne__ | Undocumented | 
Name instance with 
value b'', which represents the DNS root zone. This attribute is a readonly
property.
  dns.OPT for 
OPT Record. This attribute is a readonly property.
  | Parameters | payload | The number of octets of the largest UDP payload that can be reassembled and delivered in the requestor's network stack. | 
| extendedRCODE | Forms the upper 8 bits of extended 12-bit RCODE (together with the 4 bits 
defined in [RFC1035].  Note that EXTENDED-RCODE value 0 indicates that an 
unextended RCODE is in use (values 0 through 15). (type: int) | |
| version | Indicates the implementation level of the setter.  Full conformance with 
this specification is indicated by version 0. (type:int) | |
| dnssecOK | DNSSEC OK bit as defined by [RFC3225]. (type: bool) | |
| options | A listof 0 or more_OPTVariableOptioninstances. (type:list) | 
A readonly property for accessing the name attribute of 
this record.
| Returns | The DNS name associated with this record. Since this is a pseudo record, 
the name is always an Nameinstance with 
value b'', which represents the DNS root zone. | |
A readonly property for accessing the type attribute of 
this record.
| Returns | The DNS record type. This is a fixed value of 41 ( dns.OPTfor 
OPT Record. | |
Encode this _OPTHeader 
instance to bytes.
| Parameters | strio | the byte representation of this _OPTHeaderwill 
be written to this file. (type:file) | 
| compDict | A dictionary of backreference addresses that have already been written to 
this stream and that may be used for DNS name compression. (type: dictorNone) | 
Decode bytes into an _OPTHeader 
instance.
| Parameters | strio | Bytes will be read from this file until the full _OPTHeaderis 
decoded. (type:file) | 
| length | Not used. (type: intorNone) | 
A classmethod for constructing a new _OPTHeader from 
the attributes and payload of an existing RRHeader 
instance.
| Parameters | rrHeader | An RRHeaderinstance containing anUnknownRecordpayload. (type:RRHeader) | 
| Returns | An instance of _OPTHeader. (type:_OPTHeader) | |