2 releases (1 stable)
Uses old Rust 2015
1.0.0 | Jan 12, 2018 |
---|---|
0.1.0 | Jan 12, 2018 |
#26 in #dns-query
555KB
151 lines
Contains (WOFF font, 120KB) docs/Heuristica-Italic.woff, (WOFF font, 90KB) docs/FiraSans-Medium.woff, (WOFF font, 92KB) docs/FiraSans-Regular.woff, (WOFF font, 56KB) docs/SourceCodePro-Regular.woff, (WOFF font, 56KB) docs/SourceCodePro-Semibold.woff, (WOFF font, 49KB) docs/SourceSerifPro-Bold.woff and 1 more.
System DNS
For valid #[cfg(any(unix))]
systems this provides a simple API to
make DNS requests against the system resolver. This includes your
hosts file, and any configuration that maybe done to your system.
To use this crate
#[dependencies]
system_dns = "1.0.0"
Example
extern crate system_dns;
use system_dns::system_resolve_ipv4;
let results: Vec<IpAddr> = match system_resolve_ipv4("google.com") {
Ok(x) => x,
Err(e) => panic!("Failed to resolve `google.com`. Error {:?}", e)
};