Master Network Troubleshooting with nali, dig, mtr, and tsunami
This guide introduces four powerful network utilities—nali for IP geolocation, dig for DNS queries, mtr for combined traceroute and ping analysis, and tsunami for high‑speed UDP transfers—explaining their installation, key commands, options, and practical usage examples.
nali
nali ("where" in Chinese) is a tool that identifies IP addresses and adds geographic location information using the pure QQWry.dat database. After installation it provides several commands:
nali
nali-dig
nali-nslookup
nali-traceroute
nali-tracepath
nali-ping
The database is updated with
nali-update, and all queries are performed locally, offering fast results.
Example outputs are shown in the accompanying screenshots.
dig
dig (Domain Information Groper) queries DNS records. It is included in the
bind-utilspackage, so installing that package provides dig.
By default dig returns a single record; adding options returns all records. Common options include:
-c set class (IN, CH, HS)
-f read queries from a file
-4 or -6 force IPv4 or IPv6
-t specify query type (A, MX, etc.)
-q specify the domain name
-x reverse lookup (IP to domain)
+trace trace the query from the root
+nocmd suppress version info
+short output concise answer
Sample command outputs are illustrated with screenshots.
mtr
mtr combines traceroute and ping, using ICMP packets (and optionally TCP mode to bypass firewalls) to provide real‑time network path diagnostics.
Typical options:
-r generate a report
-w use wide hostnames
-c set packet count (default 10)
-i set interval between packets (default 1 s)
The tool displays loss percentage, sent packets, and latency statistics (Last, Avg, Best, Worst, StDev) for each hop, helping identify packet loss or routing issues.
Example screenshots demonstrate the interface and output.
tsunami
tsunami is a UDP‑based high‑speed transfer tool that uses TCP for control and UDP for data, reducing overhead and achieving fast transfers.
After downloading, compile with the provided
recompile.shscript (requires autoconf and automake). The program has client and server modes; the server runs
tsunamidwith a filename or "*" to serve all files, while the client runs
tsunamito connect and interact.
Typical client commands include
connect,
dir, and
get. Screenshots show the interactive session and transfer speeds exceeding 100 Mbps.
Download URLs:
nali source: http://www.dwhd.org/wp-content/uploads/2015/08/nali-0.2.tar.gz
mtr source: https://github.com/traviscross/mtr.git
tsunami source: https://github.com/cheetahmobile/tsunami-udp.git
Efficient Ops
This public account is maintained by Xiaotianguo and friends, regularly publishing widely-read original technical articles. We focus on operations transformation and accompany you throughout your operations career, growing together happily.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.