An EDNS message.
Designed for compatibility with
Message but with a narrower public interface.
_EDNSMessage.fromStr will interpret and remove OPT records that are present in the additional records section.
The OPT records are used to populate certain EDNS specific attributes.
_EDNSMessage.toStr will add suitable OPT records to the additional section to represent the extended EDNS information.
|Method||__init__||Construct a new
|Method||toStr||Encode to wire format by first converting to a standard
|Method||fromStr||Decode from wire format, saving flags, values and records to this
|Instance Variable||_messageFactory||A constructor of
|Method||_toMessage||Convert to a standard
|Class Method||_fromMessage||Construct and return a new
Inherited from FancyEqMixin:
Messageinstances. Called by
Construct a new
|Parameters||id||A 16 bit identifier assigned by the program that generates any kind of query. This identifier is copied the corresponding reply and can be used by the requester to match up replies to outstanding queries. (type: |
|answer||A one bit field that specifies whether this message is a query (0), or a response (1). (type: |
|opCode||A four bit field that specifies kind of query in this message. This value is set by the originator of a query and copied into the response. (type: |
|auth||Authoritative Answer - this bit is valid in responses, and specifies that the responding name server is an authority for the domain name in question section. (type: |
|trunc||Truncation - specifies that this message was truncated due to length greater than that permitted on the transmission channel. (type: |
|recDes||Recursion Desired - this bit may be set in a query and is copied into the response. If set, it directs the name server to pursue the query recursively. Recursive query support is optional. (type: |
|recAv||Recursion Available - this bit is set or cleared in a response, and denotes whether recursive query support is available in the name server. (type: |
|rCode||Extended 12-bit RCODE. Derived from the 4 bits defined in RFC1035 4.1.1 and the upper 8bits defined in RFC6891 6.1.3. (type: |
|ednsVersion||Indicates the EDNS implementation level. Set to |
|dnssecOK||DNSSEC OK bit as defined by RFC3225 3. (type: |
|authenticData||A flag indicating in a response that all the data included in the answer and authority portion of the response has been authenticated by the server according to the policies of that server. See RFC2535 section-6.1. (type: |
|checkingDisabled||A flag indicating in a query that pending (non-authenticated) data is acceptable to the resolver sending the query. See RFC2535 section-6.1.|
|maxSize||The requestor's UDP payload size is the number of octets of the largest UDP payload that can be reassembled and delivered in the requestor's network stack. (type: |
|See Also||RFC1035 section-4.1.1|
If present, an
OPT record will be extracted from the
additional section and its attributes and options will be used to set the EDNS specific attributes
extendedRCODE will be combined with
message.rCode and assigned to
|Parameters||message||The source |
|Returns||A new |