{"id":58408,"library":"hickory-resolver","title":"Hickory Resolver","description":"A safe and secure DNS stub resolver library for DNS record resolution.","status":"active","version":"0.26.1","language":"rust","source_language":null,"source_url":"https://github.com/hickory-dns/hickory-dns","tags":["dns","resolver","async","tokio","networking"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nhickory-resolver = \"0.26.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add hickory-resolver","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"TokioResolver","correct":"use hickory_resolver::TokioResolver;"}],"quickstart":{"code":"use hickory_resolver::TokioResolver;\nuse std::net::IpAddr;\n\n#[tokio::main]\nasync fn main() {\n    let resolver = TokioResolver::new().unwrap();\n    let response = resolver.lookup_ip(\"example.com\").await.unwrap();\n    for ip in response.iter() {\n        println!(\"IP: {}\", ip);\n    }\n}","lang":"rust","description":"Resolve a domain name to IP addresses using the Tokio-based resolver."},"warnings":[{"fix":"Use `#[tokio::main]` or another async runtime.","message":"Requires a Tokio runtime; the `TokioResolver` is async and must be used within an async context.","severity":"gotcha","affected_versions":">=0.20.0"}],"env_vars":null,"search_vec":"'async':17 'dns':7,12,15 'hickori':1 'librari':10 'network':19 'record':13 'resolut':14 'resolv':2,9,16 'safe':4 'secur':6 'stub':8 'tokio':18","created_at":"2026-06-16T16:22:43.607811+00:00","updated_at":"2026-06-16T16:22:43.607811+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://hickory-dns.org/","github":"https://github.com/hickory-dns/hickory-dns","docs":"https://docs.rs/hickory-resolver/","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}}