Registry / networking / domain

domain

JSON →
library0.12.1rscratesunverified

A DNS library for Rust, providing parsing, building, and handling of DNS messages.

# Cargo.toml [dependencies] domain = "0.12.1"
INSTALL
IMPORT
SIG · DOMAIN
D
domain
networkingrustv0.12.1
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.

Message
✓ use domain::base::Message;

Parse a DNS message from raw bytes.

use domain::base::Message; fn main() -> Result<(), Box<dyn std::error::Error>> { let msg = Message::from_bytes(b"\x00\x01...")?; println!("DNS message parsed"); Ok(()) }
Debug
Known issues
gotchaRequires feature flags for async support (e.g., 'tokio', 'async-std').
fix
Enable the appropriate feature in Cargo.toml: features = ['tokio'].
affects: >=0.10.0
Upgrade
Version history
0.12.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources