๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

๐ŸŒ Networking April 9, 2026 76

Linux Command: dig

DNS lookup utility with detailed query/response information

Terminal โ€” Networking
Command
$ dig +short dargslan.com A && dig +short dargslan.com MX
Output
95.216.123.45 10 mail.dargslan.com.

dig (Domain Information Groper) is the go-to DNS debugging tool. +short gives minimal output, while +trace shows the full resolution chain from root servers.

Use it to verify DNS changes, debug mail routing (MX), check propagation, and inspect SPF/DKIM/TXT records.

Share this tip