Expand description
Message handling for queries.
While queries appear to be like any other DNS message, they are in fact special: They have exactly one entry in their question section, empty answer and authority sections, and optionally an OPT and a TSIG record in the additional section. In addition, queries may need to be reused – if an upstream server won’t respond, another server needs to be asked. While the OPT and TSIG records may need to be changed, the question doesn’t and can be used again.
This module provides types that help with creating, using, and re-using
queries. QueryBuilder allows to construct a query and add and remove
an OPT record as needed. A complete message can be frozen into a
QueryMessage that can be given to the transport for sending. It can
later be unfrozen back into a QueryBuilder for manipulations.
Structs§
- Dgram
Query Message - A raw query message for use with datagram transports.
- OptBuilder
- A builder for the OPT record of a query.
- Query
Builder - Builds a query DNS message.
- Query
Message - A DNS query message.
- Stream
Query Message - A raw query message for use with stream transports.