Registry / networking / trust-dns-client

trust-dns-client

JSON →
library0.23.2rscratesunverified

A safe and secure DNS client library with DNSSEC support.

# Cargo.toml [dependencies] trust-dns-client = "0.23.2"
INSTALL
IMPORT
SIG · TRUST-DNS-CLIENT
T
trust-dns-client
networkingrustv0.23.2
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.

Client
use trust_dns_client::client::Client;

Creates a synchronous DNS client connected to Google DNS.

use trust_dns_client::client::{Client, SyncClient}; use trust_dns_client::udp::UdpClientConnection; fn main() { let conn = UdpClientConnection::new("8.8.8.8:53".parse().unwrap()).unwrap(); let client = SyncClient::new(conn); println!("Client created"); }
Debug
Known issues
gotchaRequires Tokio runtime for async operations; SyncClient works without.
fix
Use SyncClient for synchronous usage or ensure a Tokio runtime for async.
affects: >=0.23.0
Upgrade
Version history
0.23.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
32
OpenAI (training)
1
Resources
trust-dns-client — cargo add trust-dns-client · libregistry