Information Gatheringdnsdomaingeneratorwordlistpermutation

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

bash
sudo apt install dnsgen

Flags

-l, --wordlen INTEGER RANGEMin length of custom words extracted from domains. [1<=x<=100]
-w, --wordlist PATHPath to custom wordlist.
-f, --fastFast generation.
--helpShow this message and exit.

Examples

Generate domain permutations from the input file using default settings.
dnsgen example-domains.txt
Extract custom words with minimum length 3 from domains and generate combinations.
dnsgen --wordlen 3 example-domains.txt
Use a custom wordlist for generating domain name combinations.
dnsgen --wordlist /path/to/custom-wordlist.txt example-domains.txt
Perform fast generation of domain permutations from input.
dnsgen -f example-domains.txt
Set min word length to 2 and use specified wordlist for permutations.
dnsgen -l 2 -w words.txt input.txt
Fast mode with minimum word length 1 for quick domain generation.
dnsgen --fast --wordlen 1 domains.txt
Display usage information and available options.
dnsgen --help
Updated 2026-04-16kali.org ↗