# DNSGen

> Python tool that generates likely subdomain name permutations from known domains for later resolution.

Source: https://osinttools.io/tools/dnsgen/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Domain
- **Category:** Infrastructure and domains
- **Pricing:** Open source (Free and open source (MIT).)
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI
- **Website:** https://github.com/AlephNullSK/dnsgen
- **GitHub:** AlephNullSK/dnsgen, 1,083 stars · Python · MIT · last commit 2025-01-03 · dormant (no commit on the default branch in 18 months)
- **Listed:** Nov 23
- **Last verified by an editor:** Nov 23, 2026

## What it does

DNSGen takes a list of known domains and generates variations by inserting words, changing numbers, adding affixes and applying cloud, region, microservice and internal tooling naming patterns. Custom wordlists are supported.

Investigators feed the output to a resolver such as massdns to discover subdomains that passive sources missed. DNSGen itself only generates names; it does not send DNS queries.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.

## Features

- Word insertion and affixing
- Number manipulation
- Cloud and region naming patterns
- Custom wordlists with comments
- Fast generation mode

## Pros

- Makes no network requests on its own
- Easy pip install
- Pipes into massdns and similar resolvers

## Cons

- Output is only candidates; resolving them requires a separate tool that does query DNS
- Large inputs can produce very large lists

## When to use it

- Use it when you have some subdomains and want to guess related ones.
- Use it when building a wordlist for DNS brute-forcing within scope.

## Quick start

Terminal · Python:

```
python -m pip install dnsgen
dnsgen domains.txt
```

## Alternatives

- [DNSDumpster](https://osinttools.io/tools/dnsdumpster/): Passive DNS reconnaissance site that lists a domain's subdomains, hosts, mail and name servers with a map. (Freemium · Domain · passive)
- [Fast Google Dorks Scan](https://osinttools.io/tools/fast-google-dorks-scan/): Shell script that runs a set of Google dork searches against one website to find admin panels, file types and exposed paths. (Open source · Domain · passive · 1,744 GitHub stars)
- [Findomain](https://osinttools.io/tools/findomain/): Rust subdomain finder that queries certificate logs and dozens of passive APIs, with optional monitoring and alerts. (Open source · Domain · depends · 3,838 GitHub stars)
- [OWASP Amass](https://osinttools.io/tools/amass/): OWASP command-line tool for subdomain enumeration and attack surface mapping using passive sources and DNS. (Open source · Domain · depends · 15,554 GitHub stars)
- [OneForAll](https://osinttools.io/tools/oneforall/): Python subdomain collector that combines certificate logs, DNS datasets, search engines, brute force and takeover checks. (Open source · Domain · depends · 10,160 GitHub stars)
- [ParamSpider](https://osinttools.io/tools/paramspider/): Fetches a domain's archived URLs from the Wayback Machine and filters them down to ones with parameters. (Open source · Domain · passive · 3,214 GitHub stars)

All alternatives to DNSGen in one table: https://osinttools.io/tools/dnsgen/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
