VOOZH about

URL: https://www.geeksforgeeks.org/linux-unix/dnsrecon-a-powerful-dns-enumeration-script/

⇱ DNSRecon – A powerful DNS enumeration script - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

DNSRecon – A powerful DNS enumeration script

Last Updated : 23 Jul, 2025

DNSRecon is a free and open-source tool or script that is available on GitHub. Dnsrecon is one of the popular scripts in the security community which is used for reconnaissance on domains. This script is written in python language. You must have python language installed in your kali Linux operating system in order to use the script. 

This script checks all the DNS records for AXFR which can be useful for a security researcher for DNS enumeration on all types of records such as SOA, NS, TXT, SVR, SPF, etc. This script also used Google dorks for fetching indexed subdomains by Googlebot.

👁 Image

Installation and step by step tutorial of the DNSRecon:

Step 1: Open your kali Linux operating system and use the following command to install the tool.

git clone https://github.com/darkoperator/dnsrecon
👁 Image

Step 2: Now use the following command to move into the directory of the tool.

cd dnsrecon
👁 Image

Step 3: Now use the following command to install the dependencies of the tool.

pip3 install -r requirements.txt --no-warn-script-location
👁 Image

Step 4: Now use the following command to run the tool.

python3 dnsrecon.py -h
👁 Image

The tool has been installed and running successfully. Now we will see examples to use the tool.

Usages:

Example 1: Use dnsrecon for Base domain enumeration.

python3 dnsrecon.py -d <domain>
👁 Image

Example 2:  Use dnsrecon for zonewalk.

python3 dnsrecon.py -d <domain>-t zonewalk
👁 Image
Comment
Article Tags:

Explore