New Security Researchers Join 10.8K+ verified researchers โ€” submit your profile for review Submit profile โ†’
SecurityCipher
Home Blog Labs Checklists Writeups

Learn Roadmaps, courses & vulnerability guides

  • ๐Ÿ—บ๏ธ Penetration Testing Roadmap Structured offensive security path
  • ๐ŸŽ“ Free Security Courses Verified courses and coupon drops
  • ๐ŸŽฏ Penetration Testing Tricks Field notes & real bypasses
  • ๐Ÿ“„ Secure Code Explain Vulnerable vs secure code comparison
  • ๐Ÿ“– Vulnerability Explain Root causes, PoCs, and remediation
  • ๐Ÿš€ Start Here Beginner walkthrough of all resources

Practice Hands-on browser labs, games & SOC simulator

  • ๐Ÿ”ฌ Interactive Labs SQL injection, AI, AWS cloud review
  • ๐ŸŽฎ Security Games Phishing, JWT, WAF, and more
  • ๐Ÿ›ก๏ธ Shift Zero SOC desk: phish, OTP, malware, tickets
  • ๐Ÿš— On-Call Drive Neon-city arcade security missions
  • โ“ Application Security Quiz Web, secure coding, and cloud quizzes
  • โšก Threat Explorer Interactive AI & vuln attack flows

Checklists & Tools 1,760+ testing controls, utilities & standards

  • โœ… Security Checklists Hub Web, cloud, mobile, API, and infra
  • ๐Ÿ› ๏ธ Security Tools Curated recon, SAST, and bounty tools
  • ๐Ÿ“‹ Writeup Checklists Methodologies derived from real writeups
  • ๐Ÿค– OWASP LLM Top 10 Interactive risk matrix for AI apps
  • ๐Ÿ”Ž CVE Lookup Multi-source CVE search & threat intel
  • ๐Ÿ“˜ Payload Field Manual Safe-first probes, signals, and cheats

Career & Community Live scopes, verified researchers & jobs

  • ๐Ÿ’ฐ Bug Bounty Programs Searchable directory of active scopes
  • ๐Ÿ’ผ Cybersecurity Jobs Verified roles from company career sites
  • ๐Ÿง‘โ€๐Ÿ’ป Security Researchers Community profiles and submissions
  • ๐ŸŽค Security Conferences Upcoming global infosec events
  • ๐Ÿงฎ CVSS Severity Calculator Accurate CVSS 3.1 & 4.0 calculator
  • ๐Ÿงญ Career Roadmaps AppSec, Cloud, and SOC career paths
Browse All Resources 1,760+ Checklists โ€ข 18K+ Writeups โ€ข 15+ Interactive Labs Freelance Security โ†’
About
Freelance SecurityFreelance
← Security Tools View on GitHub

dnsgen

Generates combinations of domain names from provided input to feed resolvers during subdomain discovery.

DNSGen 2.0 - Advanced DNS Name Permutation Engine ๐Ÿš€

License: MIT Python 3.9+ Code style: black

DNSGen is a powerful and flexible DNS name permutation tool designed for security researchers and penetration testers. It generates intelligent domain name variations to assist in subdomain discovery and security assessments.

DNSGen Banner

โœจ Features

  • ๐Ÿ” Smart domain name permutation engine
  • ๐Ÿš„ Fast generation mode for quick assessments
  • ๐Ÿ“ Support for custom wordlists with comments
  • ๐ŸŽฏ Intelligent word extraction from existing domains
  • ๐Ÿ”ง Multiple permutation techniques
  • ๐ŸŒ Cloud-aware patterns and modern naming conventions

๐Ÿš€ Quick Start

Installation

# Using pip
python -m pip install dnsgen

# Using uv (recommended for development)
git clone https://github.com/AlephNullSK/dnsgen
cd dnsgen/
python -m pip install uv
uv sync

Basic Usage

# Basic domain permutation
dnsgen domains.txt

# With custom wordlist and output file
dnsgen -w custom_wordlist.txt -o results.txt domains.txt

# Using fast mode for quick assessment
dnsgen -f domains.txt

# Pipe with massdns for resolution
cat domains.txt | dnsgen - | massdns -r resolvers.txt -t A -o J --flush 2>/dev/null

๐Ÿ› ๏ธ Permutation Techniques

DNSGen 2.0 implements multiple sophisticated permutation techniques:

Core Permutators

  1. Word Insertion

    • Inserts words between domain levels
    • Example: api.example.com โ†’ staging.api.example.com
  2. Number Manipulation

    • Intelligently modifies existing numbers
    • Example: api2.example.com โ†’ api1.example.com, api3.example.com
  3. Word Affixing

    • Prepends/appends words to levels
    • Example: api.example.com โ†’ devapi.example.com, api-dev.example.com

Cloud & Modern Infrastructure Permutators

  1. Cloud Provider Patterns

    • Adds cloud-specific naming patterns
    • Example: example.com โ†’ api-aws.example.com, storage-azure.example.com
  2. Region Prefixes

    • Adds geographical region patterns
    • Example: api.example.com โ†’ us-east.api.example.com
  3. Microservice Patterns

    • Generates microservice-style names
    • Example: example.com โ†’ auth-service.example.com, user-api.example.com

DevOps & Tooling Permutators

  1. Internal Tooling

    • Adds common internal tool subdomains
    • Example: example.com โ†’ jenkins.internal.example.com
  2. Port Prefixing

    • Adds common port numbers
    • Example: api.example.com โ†’ 8080.api.example.com

๐Ÿ“‹ Command Line Options

dnsgen [OPTIONS] FILENAME

Options:
  -l, --wordlen INTEGER  Min length of custom words (default: 6)
  -w, --wordlist PATH    Path to custom wordlist
  -f, --fast            Fast generation mode
  -o, --output PATH     Output file path
  -v, --verbose         Enable verbose logging
  --help               Show this message and exit

๐Ÿ”ง Advanced Usage

Custom Wordlists

DNSGen 2.0 supports commented wordlists for better organization:

# Environment Names
dev
staging
prod

# Cloud Providers
aws
azure
gcp

# Tools and Services
jenkins
gitlab
grafana

Integration with MassDNS

Get clean resolved domains:

# Generate and resolve
dnsgen hosts.txt > wordlist.txt
massdns -r resolvers.txt -o S wordlist.txt | grep -e ' A ' | \
  cut -d 'A' -f 1 | rev | cut -d "." -f1 --complement | \
  rev | sort | uniq > resolved_domains.txt

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

See CONTRIBUTING.md for more details.

๐Ÿ“š Resources

  • Subdomain Enumeration: 2019 Workflow
  • Subdomain Enumeration: Doing it a Bit Smarter
  • Project Documentation

๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Original concept by Aleph Null s.r.o.
  • Inspired by altdns
  • massdns for DNS resolution

๐Ÿ“Š Project Status

  • โœ… Core functionality complete
  • ๐Ÿ—๏ธ Adding more permutation techniques
  • ๐Ÿ“ Improving documentation
  • ๐Ÿงช Adding tests

Made with โค๏ธ by the security community

Press Escape to close the search panel.

Donate

Buy me a Coffee

Penetration Testing Services

penetration Testing Services

Web Application Security Quiz

Web Application Security Quiz

Daily Bug Bounty Writeups - Twitter

Daily Bug Bounty Writeups

Download our Latest Android Application

Guide for Penetration Testing

Daily Bug Bounty Writeups - Telegram

Daily Bug Bounty Writeups

Author

Piyush
Senior Product Security Engineer

Ethical Hacker || Penetration Tester || Gamer || Blogger || Product Security Engineer || AI Security

READ ARTICLE

Donate

Buy me a Coffee

Recent Posts

  • Inside Java2Shell (CVE-2026-114938)
    Inside Java2Shell (CVE-2026-114938)
    November 18, 2026/
    0 Comments
  • Why GTA 5 Was a Hacker’s Playground โ€” And The Exact Security Architecture GTA 6 Needs
    Why GTA 5 Was a Hacker’s Playground โ€” And The Exact Security Architecture GTA 6 Needs
    November 18, 2026/
    0 Comments
  • Securing the AI Supply Chain: A Hands-On AI-BOM Playbook for Pickle RCE, Poisoned Datasets, and CI Gates
    Securing the AI Supply Chain: A Hands-On AI-BOM Playbook for Pickle RCE, Poisoned Datasets, and CI Gates
    November 17, 2026/
    0 Comments

Follow Us

SECURITY DISPATCH

Subscribe to SecurityCipher

Get the latest bug bounty writeups, offensive security tooling, and zero-day analyses delivered to your inbox.

Subscription Form

SecurityCipher

Practical security guides, vulnerability deep-dives, and hands-on resources for bug bounty hunters and penetration testers.

Useful Links

  • Security Checklists
  • Cybersecurity Jobs
  • Blogs
  • Docs
  • About
  • Contact

Free Resources

  • Interactive Security Labs
  • Security Tools Directory
  • Pentest Roadmap
  • OWASP LLM Top 10
  • Bug Bounty Writeups
  • Bug Bounty Programs
ยฉ 2026 Security Cipher. All rights reserved. Privacy Policy ยท Terms & Conditions ยท DMCA ยท
PRIVACY & DATA CONTROLS

Privacy & Cookie Preferences

We use essential cookies to maintain secure sessions and analyze anonymized telemetry to optimize our research and interactive labs.

Manage anytime via our Privacy Policy or footer settings.

Security Researchers
Security Researchers
OPEN DIRECTORY Verified Network

Are you a security researcher or bug hunter?

Join our open directory of verified pentesters, showcase your achievements, and get recognized!

Submit Researcher Profile โ†’