the_open_door
coffee
ESEN
← Tools

dig

DNS queries, including zone transfers (AXFR).

A DNS client to query a domain's records. Its star use in pentesting is the zone transfer (AXFR): if the server allows it, it hands over every subdomain and internal host at once.

Family Recon, DNS & OSINT

Flags axfr ns any @<dns>

Concepts DNS zone transfer (AXFR), Virtual Host Fuzzing

Cheatsheet DNS · 53

Installation

sudo apt install -y dnsutils

Useful commands4 commands

When it fails

  • ; Transfer failed.It is not that dig cannot reach the server: the zone transfer was refused by the DNS, which is normal for anything that is not an authorised secondary. If it could not reach it, the message would be connection timed out. It is always worth trying, because when it works it hands you the whole domain map at once.seen in Cascade

Appears in

Some machines where its use is documented; not an exhaustive list.