Module domain::base::record

source ·
Expand description

Resource Records.

This module defines types and traits related to DNS resource records. The most complete type is Record which contains a complete record for a certain record type. RecordHeader contains the data from a record’s header, the first couple of octets common to all records. Finally, ParsedRecord is similar to Record but contains the record data in its raw, encoded form.

The AsRecord trait is used by the message builder to consider different representations of records.

Structs§

  • A raw record parsed from a message.
  • A DNS resource record.
  • The header of a resource record.
  • A span of time, typically used to describe the time a given DNS record is valid.

Enums§

Traits§

  • A helper trait allowing construction of records on the fly.