![Kali Linux Network Scanning Cookbook(Second Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/179/36701179/b_36701179.jpg)
Zone transfer
DNS zone transfers are a tool for domain name administrators to replicate their DNS databases across their organization's DNS servers. The problem that arises is that this can reveal a great deal of information about an organization's infrastructure. For this reason, typically, DNS servers are configured to not allow a zone transfer. To attempt a zone transfer using dnsrecon, we would use the -a flag (AXFR), or you can use the -t flag with type axfr. The axfr type is the query type that denotes DNS zone transfer. The command to run a zone transfer would look like the following:
dnsrecon -d google.com -a
![](https://epubservercos.yuewen.com/B47322/19470409201646106/epubprivate/OEBPS/Images/Screenshot-from-2017-04-11-10-11-43-1024x740.png?sign=1739311724-UJy18iLIwO35lDVvXtD5za3eSc2ILTdY-0-433be77a5f9822d7cfff2761a5a4e8d8)
As you can see, in our example the zone transfers fail, but it never hurts to try. Every now and then, you may come across a DNS server that has not been configured correctly to prevent this.