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 dnsutilsUseful commands
When it fails
; Transfer failed.It is not thatdigcannot 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 beconnection 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.
- AdministratorHackTheBox
- CascadeHackTheBox
- FlightHackTheBox
- ForestHackTheBox
- Hacker Kid 1.0.1VulnHub
- NagoyaProving Grounds Practice
- ReturnHackTheBox
- SaunaHackTheBox
- SupportHackTheBox
- TrickHackTheBox