cymrust 0.4.1

Query Team Cymru's IP-to-ASN mapping via DNS
Documentation
1
2
3
4
5
6
7
8
9
10
use std::env;
use std::net::IpAddr;

fn main() {
    let first_arg = env::args().nth(1).unwrap();
    let ip: IpAddr = first_arg.parse().unwrap();

    let cymru = cymrust::cymru_ip2asn(ip);
    println!("{:#?}", cymru)
}