whois in Rust
toml
[dependencies]
whois-rust = "1.5.0"
rust
use whois_rust::{WhoIs, WhoIsLookupOptions};
fn main() {
let whois = WhoIs::from_string("{\"org\":\"whois.pir.org\",\"\":\"whois.ripe.net\",\"_\":{\"ip\":{\"host\":\"whois.arin.net\",\"query\":\"n + $addr\\r\\n\"}}}").unwrap();
let result: String = whois.lookup(WhoIsLookupOptions::from_string("bing.com.qq").unwrap()).unwrap();
println!("{:#?}", result);
}