class documentation
class Message(tputil.FancyEqMixin): (source)
Constructor: Message(id, answer, opCode, recDes, ...)
Message
contains all the information represented by a single DNS request or response.
Method | __init__ |
No summary |
Method | __repr__ |
Generate a repr of this Message . |
Method | add |
Add another query to this Message. |
Method | decode |
Undocumented |
Method | encode |
Undocumented |
Method | from |
Decode a byte string in the format described by RFC 1035 into this Message . |
Method | lookup |
Retrieve the IRecord implementation for the given record type. |
Method | parse |
Undocumented |
Method | to |
Encode this Message into a byte string in the format described by RFC |
Class Variable | add |
Undocumented |
Class Variable | compare |
Undocumented |
Class Variable | header |
Undocumented |
Class Variable | header |
Undocumented |
Class Variable | ns |
Undocumented |
Instance Variable | additional |
Records containing IP addresses of host names in answers and authority. |
Instance Variable | answer |
See __init__ |
Instance Variable | answers |
Records containing the answers to queries if this is a response message. |
Instance Variable | auth |
See __init__ |
Instance Variable | authentic |
See __init__ |
Instance Variable | authority |
Records containing information about the authoritative DNS servers for the names in queries. |
Instance Variable | checking |
See __init__ |
Instance Variable | id |
See __init__ |
Instance Variable | max |
See __init__ |
Instance Variable | op |
See __init__ |
Instance Variable | queries |
The queries which are being asked of or answered by DNS server. |
Instance Variable | r |
See __init__ |
Instance Variable | rec |
See __init__ |
Instance Variable | rec |
See __init__ |
Instance Variable | trunc |
See __init__ |
Class Variable | _record |
Undocumented |
Instance Variable | _field |
The names of attributes representing non-flag fixed header fields. |
Instance Variable | _flag |
The names of attributes representing the flag header fields. |
Instance Variable | _section |
The names of attributes representing the record sections of this message. |
Inherited from FancyEqMixin
:
Method | __eq__ |
Undocumented |
Method | __ne__ |
Undocumented |
def __init__(self, id=0, answer=0, opCode=0, recDes=0, recAv=0, auth=0, rCode=OK, trunc=0, maxSize=512, authenticData=0, checkingDisabled=0):
(source)
¶
Parameters | |
id:int | A 16 bit identifier assigned by the program that generates any kind of query. This identifier is copied to the corresponding reply and can be used by the requester to match up replies to outstanding queries. |
answer:int | A one bit field that specifies whether this message is a query (0), or a response (1). |
opint | 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. |
recint | Recursion Desired - this bit may be set in a query and is copied into the response. If RD is set, it directs the name server to pursue the query recursively. Recursive query support is optional. |
recint | Recursion Available - this bit is set or cleared in a response and denotes whether recursive query support is available in the name server. |
auth:int | 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. |
r | Undocumented |
trunc:int | A flag indicating that this message was truncated due to length greater than that permitted on the transmission channel. |
maxint | 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. |
authenticint | 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. |
checking | A flag indicating in a query that pending (non-authenticated) data is acceptable to the resolver sending the query. See RFC2535 section-6.1. |