Crate dnscache

Source
Expand description

Library part of DnsCache, allowing abstracting network and database (but not packet parsing) away from the actual code.

Structs§

AddrTtl
Simplified record: some address with TTL
CacheEntry
Remembered status about some domain
CacheEntry2
Result of resolution of A or AAAA entries of some domain
DnsCache
Main object. DNS proxy with forced caching.
Options
TTL values in seconds Actual resource record TTL values are clamped between min_ttl and max_ttl

Enums§

ReceiveResult
What Network::recv_from returns

Traits§

Database
Database abstraction
Network
Network abstraction

Type Aliases§

BoxResult
Too lazy to do proper error handling
Time
Answer timestamp, seconds
Ttl
TTL of a resource record, seconds