Registry / networking / tokio-dns-unofficial

tokio-dns-unofficial

JSON →
library0.4.0rscratesunverified

Unofficial extension to tokio to provide asynchronous DNS resolution.

# Cargo.toml [dependencies] tokio-dns-unofficial = "0.4.0"
INSTALL
IMPORT
SIG · TOKIO-DNS-UNOFFICI
T
tokio-dns-unofficial
networkingrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ResolverFuture
use tokio_dns_unofficial::ResolverFuture;

Resolves a domain name asynchronously using Tokio.

use tokio_dns_unofficial::ResolverFuture; use tokio::runtime::Runtime; let mut rt = Runtime::new().unwrap(); let result = rt.block_on(ResolverFuture::new("example.com")); println!("{:?}", result);
Debug
Known issues
gotchaThis crate is unofficial and may not be actively maintained.
fix
Consider using trust-dns-resolver or hickory-resolver instead.
affects: >=0.4.0
Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
Resources
tokio-dns-unofficial — cargo add tokio-dns-unofficial · libregistry