Registry / networking / trust-dns

trust-dns

JSON →
library0.23.2rscratesunverified

Trust-DNS is a safe and secure DNS server with DNSSEC support.

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

Performs a DNS query.

use trust_dns::client::Client; use trust_dns::client::SyncClient; use trust_dns::op::Query; use trust_dns::rr::RecordType; fn main() { let client = SyncClient::new(); let query = Query::query("example.com.", RecordType::A); let response = client.query(&query); println!("{:?}", response); }
Debug
Known issues
gotchaRequires Tokio runtime for async operations.
fix
Ensure a Tokio runtime is active when using async client.
affects: >=0.23.0
Upgrade
Version history
0.23.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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