Skip to content
James Bower
James Bower

Quantitative AI Security

  • Tools
  • Audit
  • Guides
  • Courses
  • Newsletter
James Bower

Quantitative AI Security

DNS Enumeration Uncut: The Best Guide for Hackers

James Bower, April 17, 2016April 21, 2023

DNS enumeration and DNS reconnaissance is a critical threat intelligence skill to learn. In literally every aspect of threat intel you will end up running into malicious domains. For me this most often occurs when working with threat intel from my honeynet. An example would be when I come across a domain being used as a “staging” server and want to start mapping out the infrastructure. This is where DNS enumeration comes into play as it can provide not only interesting records but also subdomains.

From a pen testing perspective subdomains are a great way to gain a “foothold” into a corporate network. Regardless of “how” I come across them, digging into a domains DNS records can provide you with valuable intelligence. This goes beyond just “Zone Transfers” and can also lead you down quite a few rabbit holes! Regardless, I’m going to be discussing the three major open source DNS tools that I use and a few quick examples of how I use them just to wet your appetite.

Fierce

Fierce is a great tool for DNS enumeration which you can find in Kali Linux. In the example below I’m running Fierce against the cylance.com domain. Cylance.com is currently running an open bug bounty program that happened to catch my eye.

fierce -dns cylance.com -threads 5 -file /tmp/cylancedns.txt

The above command will run Fierce against “cylance.com” using five threads and then will save the output to /tmp/cylancedns.txt. Being able to control the number of threads can greatly increase the overall speed.

<Image>

Fierce has quite a few options and can handle most DNS recon needs.

DNSMap

DNSMap is another tool I’ve continually used for various DNS enumeration needs. It’s been around for a long time and is typically my “goto” when it comes to brute forcing subdomains.

dnsmap cylance.com -w /tmp/subdomains.txt -r /tmp/cylance-dnsmap.txt

DNSRecon

DNSRecon is probably one of the oldest DNS tools and my go to for DNS enumeration and reconnaissance. It’s been around since around 2006 and is still actively maintained by darkoperator. In the example below I’m using the “-a” parameter to see if the “cylance.com” nameservers allow DNS zone transfers. I’m also going to use a few other parameters that I generally throw into the mix.

dnsrecon -d cylance.com -a
dnsrecon -d cylance.com -D /usr/share/wordlist/subdomains.txt
dnsrecon -d cylance.com -t zonewalk

DNS Enumeration Conclusion

Those are the three primary DNS tools that I use on a consistent basis. IMO there really shouldn’t be a need to use anything outside these. All three are incredibly robust and have a large number of features.

I hope you have found this useful. This is something I’ve been wanting to figure out for some time now. Also make sure to keep coming back to my blog as I’m going to be putting out more threat intelligence posts here:

https://www.jamesbower.com/category/threat-intelligence/

And as always, thank you for taking the time to read this. If you have any comments, questions, or critiques, please reach out to me on our FREE ML Security Discord Server – HERE

Security Tools Threat Intelligence recon

Post navigation

Previous post
Next post

Related Posts

Threat Intelligence

Threat Profile: Killer Swag

June 13, 2017April 21, 2023

Introduction I’ve been monitoring an interesting threat for the past several days, a group I’m referring to as “Killer Swag”. Mainly because the initial dropper is called “Swag.sh” and “Killer Swag” just sounds cool. In another life I think I would have been a marketing genius, but I digress. This…

Read More
Text Analytics

How to Convert Threat Intelligence PDF into Text

September 2, 2009April 21, 2023

Here’s your guide to effortlessly convert threat intelligence from cumbersome PDFs (blah to work with), into easily accessible text, streamlining your cybersecurity analysis and response like never before! I’m sure like me you’ve been struggling to convert threat intelligence PDFs into text? Well I hear you friend. As you know…

Read More
  • Twitter
  • GitHub
  • YouTube
  • LinkedIn

Videos

https://www.youtube.com/watch?v=FEb8KZoEyzI&t=1291s

Categories

  • Active Defense
  • Anomaly Detection
  • AWS
  • Books
  • Business
  • CTF
  • Decision Intelligence
  • Deep Learning
  • Detection Engineering
  • EDA
  • Entity Recognition
  • Health
  • Linux
  • LLM
  • Machine Learning
  • Memory Forensics
  • NIDS
  • NLG
  • NLP
  • Operating Systems
  • Productivity
  • Python
  • Quantitative Security
  • Security Tools
  • Sentiment Analysis
  • Tech
  • Text Analytics
  • Threat Hunting
  • Threat Intelligence
  • Topic Modeling
  • UEBA

Recent Posts

  • Detection Rule Staleness: How AI Can Solve This Now
  • How to Think About Low-Latency Development with Python
  • Managing Noise In AI Security Machine Learning
  • Dimensionality Reduction: Find the Best Method for Your Data
  • Improved Anomaly Detection in Cybersecurity using Model Cascading

Tags

Apache BERT Boot2Root classification Conda Data Augmentation ddos Diet Dirb Ensemble ETL featured Firewall FreeBSD GPT-3 Hacking Hacking Challenge Htop Kioptrix LiME LLM low-latency Miniconda Mod_jk Monitoring NetworkMiner Nikto NLP NLTK Nmap Nokia 770 OpenAI OpenBSD PCAP pdfminer Peak Performance PF recon Security SSM Tomcat Volatility VSCode Word2Vec xgboost

Archives

  • April 2026
  • November 2024
  • October 2024
  • June 2024
  • October 2023
  • September 2023
  • August 2023
  • May 2023
  • April 2023
  • February 2023
  • March 2020
  • June 2019
  • July 2018
  • May 2018
  • August 2017
  • June 2017
  • February 2017
  • November 2016
  • October 2016
  • September 2016
  • April 2016
  • March 2016
  • November 2015
  • August 2015
  • June 2015
  • February 2015
  • September 2014
  • August 2014
  • July 2014
  • January 2014
  • June 2013
  • January 2012
  • September 2009
  • August 2009
  • September 2008
  • September 2006
©2026 James Bower | WordPress Theme by SuperbThemes