dnsgen
dnsgen is a DNS generator that creates combinations of domain names from provided input. It extracts custom words per execution and generates permutations based on a wordlist.
Description
dnsgen provides a generator for combinations of domain names derived from user-supplied input files. It processes domains to extract custom words and uses a wordlist to produce varied domain permutations, useful for DNS reconnaissance and brute-forcing potential subdomains or related domains.
Common use cases include expanding a list of known domains into exhaustive permutations for identifying hidden subdomains or testing domain variations during penetration testing. The tool supports customization through wordlist input and word length filtering, enabling targeted generation workflows.
As part of Kali Linux's toolkit, dnsgen aids in information gathering phases by automating the creation of domain name lists from minimal seed data, streamlining workflows in DNS enumeration tasks.
How It Works
dnsgen reads a filename containing domains, extracts custom words based on configurable minimum length (--wordlen), and combines them using a provided wordlist (--wordlist) or defaults. The --fast flag optimizes generation speed. It leverages python3-click for CLI handling and python3-tldextract for domain parsing, producing output permutations iteratively per execution.
Installation
sudo apt install dnsgenFlags
Examples
dnsgen example-domains.txtdnsgen --wordlen 3 example-domains.txtdnsgen --wordlist /path/to/custom-wordlist.txt example-domains.txtdnsgen -f example-domains.txtdnsgen -l 2 -w words.txt input.txtdnsgen --fast --wordlen 1 domains.txtdnsgen --help