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 doas 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§
- DnsEntry
Ext - Common methods for all DNS entries: questions and resource records.
- DnsRecord
Ext - Common methods for DNS resource records.
Functions§
- ip_
address_ rr_ type - Returns
RRType
for a given IP address.
Type Aliases§
- DnsRecord
Box - A convenience type alias for DNS record trait objects.