DNS Zone Transfer Tutorial
What is a zone transfer?
A zone transfer is the process of replicating/copying a DNS database/zone file from a primary DNS server to a secondary DNS server.
It’s corresponding DNS query/record is AXFR.
Why is this important or valuable?
The zone file contains all the DNS names that are defined for that particular DNS server.
The main issue or advantage depending on whether you see it as an attacker or a defender is that many DNS servers are misconfigured and as a result, the zone file can be replicated to unauthorized secondary DNS servers.
The zone file contains all the IP addresses of servers and hosts. As a result, this can be very useful for an attacker as they are able to find important info like the internal network of a domain or organization.
Tools we will be using
If successful you will get the entire zone file that contains all the IP’s.
Why nslookup? – Works on Windows
Finding Name servers
Set type=ns, zonetransfer.me
Attempt zone transfer
- Server nsztm1.digi.ninja
- Set type=any – Not specifying the records
- Ls -d zonetransfer.me