Module domain::base::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§

  • A DNS message.
  • An iterator over the records of a message.
  • An iterator over the question section of a DNS message.
  • An iterator over specific records of a record section of a DNS message.
  • An iterator over the records in one of the three record sections.
  • A message was too short to even contain the header.

Enums§

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