Struct Header
Fields
Name | Type | Description |
ANCOUNT
|
ushort | An unsigned 16 bit integer specifying the number of resource records in the answer section.
|
ARCOUNT
|
ushort | An unsigned 16 bit integer specifying the number of resource records
in the additional records section.
|
ID
|
ushort | 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.
|
NSCOUNT
|
ushort | An unsigned 16 bit integer specifying the number of name server resource records
in the authority records section.
|
QDCOUNT
|
ushort | An unsigned 16 bit integer specifying the number of entries in the question section.
|
Methods
Name | Description |
toString
(sink)
|
Humean readable representation loosely inspired from dig
|
Enums
Name | Description |
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.
|
RCode
|
Response code - this 4 bit field is set as part of responses.
|
Aliases
Name | Description |
AA
|
Authoritative Answer
|
AD
|
Authenticated Data, initially defined in RFC2065
|
CD
|
Checking Disabled, initially defined in RFC2065
|
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.
|
QR
|
A one bit field that specifies whether this message is a
query (0), or a response (1).
|
RA
|
Recursion Available
This bit is set or cleared in a response, and denotes whether recursive
query support is available in the name server.
|
RCODE
|
Response code - this 4 bit field is set as part of responses.
|
RD
|
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.
|
TC
|
TrunCation - specifies that this message was truncated
due to length greater than that permitted on the transmission channel.
|
Z
|
Reserved for future use. Must be zero in all queries and responses.
|
https
//datatracker.ietf.org/doc/html/rfc1035#section-4.1.1