{"id":59267,"library":"domain","title":"Domain","description":"A DNS library for Rust, providing parsing, building, and handling of DNS messages.","status":"active","version":"0.12.1","language":"rust","source_language":null,"source_url":"https://github.com/nlnetlabs/domain","tags":["dns","networking","protocol","parsing"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ndomain = \"0.12.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add domain","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Message","correct":"use domain::base::Message;"}],"quickstart":{"code":"use domain::base::Message;\n\nfn main() -> Result<(), Box<dyn std::error::Error>> {\n    let msg = Message::from_bytes(b\"\\x00\\x01...\")?;\n    println!(\"DNS message parsed\");\n    Ok(())\n}","lang":"rust","description":"Parse a DNS message from raw bytes."},"warnings":[{"fix":"Enable the appropriate feature in Cargo.toml: features = ['tokio'].","message":"Requires feature flags for async support (e.g., 'tokio', 'async-std').","severity":"gotcha","affected_versions":">=0.10.0"}],"env_vars":null,"search_vec":"'build':9 'dns':3,13,15 'domain':1 'handl':11 'librari':4 'messag':14 'network':16 'pars':8,18 'protocol':17 'provid':7 'rust':6","created_at":"2026-06-16T16:56:36.096723+00:00","updated_at":"2026-06-16T16:56:36.096723+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://nlnetlabs.nl/projects/domain/","github":"https://github.com/nlnetlabs/domain","docs":"https://docs.rs/domain/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}