Dnsgen
DNS name generator from existing subdomains
Recon & OSINT3 commands
#dns#generator#subdomain#permutation
Installation
1Install via pip
2Verify installation
pip install dnsgen
# Verify
dnsgen --helpBasic Usage
Dnsgen generates plausible subdomain names from existing subdomains using common patterns and prefixes/suffixes
# Generate permutations and pipe to resolver
cat subdomains.txt | dnsgen - | dnsx -silent -a
# Use custom wordlist
cat subdomains.txt | dnsgen -w /usr/share/wordlists/dnsgen.txt
# Output to file
cat subdomains.txt | dnsgen -o permutations.txtCommand Reference
3 commands
1Custom wordlist path
-w2Output file path
-o3Read from stdin
-When to Use
1
Generating new subdomain candidates from known ones2
Finding hidden subdomains through common naming patterns3
Post-processing after passive enumeration4
Pipeline automation with dnsx or massdnsNotes & Tips
1
Lightweight and fast — ideal for piping in bash workflows2
Works best when combined with a resolver like dnsx or massdns3
Built-in wordlist covers common dev, staging, and admin patterns4
No active scanning — pure generation, needs external resolutionCommon Errors & Solutions
dnsgen: command not found after pip install
Ensure Python Scripts directory is in your PATH, or use python -m dnsgen
No output generated
Ensure input has valid subdomain names — one per line, domain-only format