dns_types::protocol

Module types

Source

Structs§

  • A domain name is a sequence of labels, where each label is a length octet followed by that number of octets.
  • Common header type for all messages.
  • A label is just a sequence of octets, which are compared as case-insensitive ASCII. A label can be no longer than 63 octets.
  • Basic DNS message format, used for both queries and responses.
  • A struct with a private constructor, to ensure invalid Opcodes cannot be created.
  • The question section has a list of questions (usually 1 but possibly more) being asked. This is the structure for a single question.
  • A struct with a private constructor, to ensure invalid Rcodes cannot be created.
  • A struct with a private constructor, to ensure invalid RecordClasses cannot be created.
  • A struct with a private constructor, to ensure invalid RecordTypes cannot be created.
  • The answer, authority, and additional sections are all the same format: a variable number of resource records. This is the structure for a single resource record.

Enums§

Constants§