DNS Subdomain Brute Forcing

terminal
dnsenum --enum <ip> -f <wordlist>
  • What is it? It is the system that translates domain names (such as ejemplo.com) into IP addresses (such as 192.168.1.1).
  • Relationship with subdomains:
  • DNS stores subdomain information.
  • For example:
txt
   blog.ejemplo.com -> 192.168.1.2
   shop.ejemplo.com -> 192.168.1.3
  • What are they? Subdomains registered on DNS servers that are explicitly configured and associated with a main domain.
  • Example: If querying a DNS server for mail.ejemplo.com returns an IP, it indicates that the subdomain is registered.
  • How does dnsenum work?
  • It queries DNS servers directly to discover real subdomains.
  • If a subdomain is not configured in DNS, dnsenum will not be able to find it.

Subdomains Detected with ffuf

  • What does it do? ffuf forces paths or names on the web; it does not interact directly with DNS servers.
  • Example: If there is a subdomain such as admin.ejemplo.com that responds to HTTP requests but is not registered in public DNS (it may use an internal or custom configuration), ffuf can discover it if it responds to requests.
  • Key difference:
  • ffuf looks for valid HTTP responses by trying names on the domain.
  • It does not depend on DNS records, but on the web server behind the domain responding.