The DNS interrogation pair:
nslookup— universal, ships with Windows and most Unix.dig— richer output, scriptable; preferred for incident response and record auditing.
Use them to resolve a suspicious domain to its current IPs, list MX/NS/TXT records (often used as C2 channels), check authoritative answers vs. cached ones, and detect DNS hijacking.