Module message

Source
Expand description

Accessing existing DNS messages.

This module defines a number of types for processing the content of a DNS message in wire format. Because many components of the message are of varying length, this can only be done iteratively. The type Message wraps an octets sequence containing a complete message. It provides access to the four sections of the message via additional types.

For details, see the Message type.

Structs§

Message
A DNS message.
MessageIter
An iterator over the records of a message.
QuestionSection
An iterator over the question section of a DNS message.
RecordIter
An iterator over specific records of a record section of a DNS message.
RecordSection
An iterator over the records in one of the three record sections.
ShortMessage
A message was too short to even contain the header.

Enums§

CopyRecordsError
An error occurrd while copying records.
Section
A helper type enumerating the three kinds of record sections.