dig/host Cheatsheet

DNS commands.

Overview

dig and host are the standard DNS investigation tools. Five primitive surfaces cover almost every DNS debugging session: record-type queries, authoritative-server targeting, trace mode for full resolution paths, reverse DNS lookups, and short output for scripting. Fluency under pressure turns “DNS is broken” into a specific query.

The approach

Five idioms cover most DNS investigation. Memorising them moves the team from copy-paste guesses to surgical resolution debugging.

Why this compounds

Each DNS investigation teaches the team a little more about resolver behaviour and zone configuration. Fluent dig replaces guesswork; the same skills transfer to authoritative-server debugging and DNSSEC validation.