Expand description
Agnostic DNS
§Introduction
agnostic-dns
is an async runtime agnostic layer over hickory-dns
.
Builtin supports runtimes:
tokio
async-std
smol
§Installation
[dependencies]
agnostic-dns = "0.1"
-
tokio
agnostic-dns = { version = "0.1", features = ["tokio"] }
-
smol
agnostic-dns = { version = "0.1", features = ["smol"] }
-
async-std
agnostic-dns = { version = "0.1", features = ["async-std"] }
§License
agnostic-dns
is under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2025 Al Liu.
Re-exports§
pub use agnostic_net as net;
Structs§
- Agnostic
Time - DNS time
- Async
Connection Provider - Create
DnsHandle
with the help ofAsyncRuntimeProvider
. - Async
DnsUdp - DNS udp
- Async
Runtime Provider - Defines which async runtime that handles IO and timers.
- Async
Spawn - Async spawner
- Name
Server Config - Configuration for the NameServer
- Name
Server Config Group - A set of name_servers to associate with a
ResolverConfig
. - Resolver
Config - Configuration for the upstream nameservers to use for resolution
- Resolver
Opts - Configuration for the Resolver
- Timer
- Timer implementation for the dns.
Enums§
- Lookup
IpStrategy - The lookup ip strategy
- Protocol
- The protocol on which a NameServer should be communicated with
- Server
Ordering Strategy - The strategy for establishing the query order of name servers in a pool.
Constants§
- CLOUDFLARE_
IPS - IP addresses for Cloudflare’s 1.1.1.1 DNS service
- GOOGLE_
IPS - IP addresses for Google Public DNS
- QUAD9_
IPS - IP address for the Quad9 DNS service
Functions§
- parse_
resolv_ conf - read_
resolv_ conf - Read the DNS configuration from a file.
- read_
system_ conf
Type Aliases§
- Dns
- Agnostic aysnc DNS resolver