Structs§
- BlastDNS
Client - Primary API surface for performing DNS lookups concurrently.
- BlastDNS
Config - Configuration knobs for [
BlastDNSClient]. - Mock
BlastDNS Client - Mock DNS client for testing purposes.
Enums§
Constants§
- DEFAULT_
CACHE_ CAPACITY - Default cache capacity (0 = disabled).
- DEFAULT_
CACHE_ MAX_ TTL - Default maximum TTL for cached entries.
- DEFAULT_
CACHE_ MIN_ TTL - Default minimum TTL for cached entries.
- DEFAULT_
MAX_ RETRIES - Default number of retry attempts per hostname.
- DEFAULT_
PURGATORY_ SENTENCE - Default purgatory sentence duration.
- DEFAULT_
PURGATORY_ THRESHOLD - Default consecutive error count needed to send a worker to purgatory.
- DEFAULT_
REQUEST_ TIMEOUT - Default timeout in milliseconds used for each resolver request.
- DEFAULT_
THREADS_ PER_ RESOLVER - Default number of worker tasks spawned per resolver.
Traits§
- DnsResolver
- Core trait for DNS resolution.
Types only need to implement
resolve_full, all other methods have default implementations.
Functions§
- check_
ulimits - Checks if the system’s NOFILE limit is sufficient for the given configuration. Each worker needs file descriptors for UDP sockets, plus overhead.
- get_
system_ resolvers - Get system DNS resolver IP addresses from OS configuration. Works on Unix, Windows, macOS, and Android.
Type Aliases§
- Batch
Result - Result item produced by
BlastDNSClient::resolve_batch_full. - Batch
Result Basic - Result item produced by
BlastDNSClient::resolve_batch.