pingr 0.3.3

A blazing fast network scanner with beautiful terminal output and multiple export formats
use dns_lookup::lookup_addr;
use std::net::{IpAddr, Ipv4Addr};

fn main() {
    let test_ips = vec![
        "8.8.8.8",
        "1.1.1.1",
        "192.168.1.1",
    ];
    
    for ip_str in test_ips {
        let ip = ip_str.parse::<Ipv4Addr>().unwrap();
        println!("Testing: {}", ip);
        match lookup_addr(&IpAddr::V4(ip)) {
            Ok(hostname) => println!("  ✓ Found: {}", hostname),
            Err(e) => println!("  ✗ Failed: {}", e),
        }
    }
}