Network diagnostic tool: ping hosts, scan ports, traceroute, DNS lookup, latency measurement, and HTTP checks — all in one script.
| Command | Description |
|---|---|
| --------- | ------------- |
netping ping | Ping a host (default: 4 packets) |
netping ports | Check if TCP ports are open |
netping trace | Traceroute to host |
netping dns | DNS lookup (A, AAAA, MX, NS, TXT records) |
netping latency | Measure average latency (5 pings with stats) |
netping http | Check HTTP status and response timing |
netping sweep | Quick ping sweep of a /24 subnet |
netping version | Show version |
netping ping google.com # → ping with 4 packets
netping ping 8.8.8.8 10 # → ping with 10 packets
netping ports example.com 80,443,8080 # → check 3 ports
netping trace cloudflare.com # → traceroute
netping dns github.com # → A, AAAA, MX, NS, TXT records
netping latency 1.1.1.1 # → avg latency over 5 pings
netping http https://example.com # → HTTP status + TTFB
netping sweep 192.168.1.0/24 # → find alive hosts
ping (standard)dig or nslookup (for DNS lookups)traceroute or tracepath (for trace, optional — falls back to ping TTL)curl (for HTTP checks)/dev/tcp (for port scanning — built into bash)共 2 个版本