🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

🌐 Networking April 9, 2026 3

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