Crate mdns_parser

Source
Expand description

DNS parsing utility with a focus on mDNS service discovery.

  • DnsIncoming is the logic representation of an incoming DNS message.
  • DnsOutgoing is the logic representation of an outgoing DNS message.

Structs§

DnsAddress
Resource Record for IPv4 address or IPv6 address.
DnsIncoming
An incoming DNS message. It could be a query or a response.
DnsNSec
Resource Record for negative responses
DnsOutgoing
Representation of one outgoing DNS message that could be sent in one or more packet(s).
DnsPointer
Resource Record for a DNS pointer
DnsSrv
Resource Record for a DNS service.
DnsTxt
Resource Record for a DNS TXT record.
TxtProperty
Represents a property in a TXT record.

Enums§

RRType
DNS resource record types, stored as u16. Can do as u16 when needed.

Constants§

CLASS_CACHE_FLUSH
Cache-flush bit: the most significant bit of the rrclass field of the resource record.
CLASS_IN
The class value for the Internet.
FLAGS_AA
Flag bit for Authoritative Answer
FLAGS_QR_QUERY
Flag bit to indicate a query
FLAGS_QR_RESPONSE
Flag bit to indicate a response
MAX_MSG_ABSOLUTE
Max size of UDP datagram payload.

Traits§

DnsEntryExt
Common methods for all DNS entries: questions and resource records.
DnsRecordExt
Common methods for DNS resource records.

Functions§

ip_address_rr_type
Returns RRType for a given IP address.

Type Aliases§

DnsRecordBox
A convenience type alias for DNS record trait objects.