Blog · Domain and IP recon
How to find subdomains of a domain, free and without scanning
A domain's subdomains say a lot about who runs it: where the mail lives, which services face the internet, which test environment someone forgot. There is no public list of them. DNS answers questions about a name you already know, and it will not tell you the names under a domain. So every method that finds subdomains passively does the same thing: it asks a source that has already seen those names.
This guide goes through five of those sources, from the quickest to the slowest, then how to check which names are still live, and where the line between research and scanning is. We checked each service's documentation on 29 November 2026.
Passive or active: where the line is
- Passive means asking sources that already recorded the names: certificate logs, passive DNS, web archives, search engines. Nothing reaches the target except, at the end, ordinary DNS lookups of names you already have.
- Active means touching the target to make it reveal names: guessing thousands of names by brute force against its name servers, asking those servers for a zone transfer, or probing its web servers for hidden virtual hosts. That belongs to a penetration test with the owner's written authorization and an agreed scope. It is not what this guide covers, and it is not how Pandora works: Pandora only queries publicly available sources, passively.
1. Certificate Transparency: the names in certificates
Certificate authorities record the TLS certificates they issue in public Certificate Transparency logs, with the names each one covers, and the major browsers require certificates to appear there. That makes the logs the richest free source of subdomains: if a service has had its own HTTPS certificate, its name is probably there.
crt.sh searches those logs. Type %.example.com in its search box, where % is a wildcard, and it lists the certificates issued for names under the domain. For a script, the JSON version is the address subfinder's own code uses:
https://crt.sh/?q=%25.example.com&output=json
crt.sh fails often, with 502 errors and searches that hang. When it does, the other ways to read the same logs are in our crt.sh alternatives.
Cert Spotter, from SSLMate, has a search API that returns the unexpired certificates it knows for a domain, and the include_subdomains option goes down to subdomains:
https://api.certspotter.com/v1/issuances?domain=example.com&include_subdomains=true&expand=dns_names
Without an account, it allows a limited number of queries an hour for personal or evaluation use. With an account, its free Small plan gives 100 single-hostname queries and 10 full-domain queries an hour.
What the logs will not show:
- Names behind a wildcard certificate. A certificate for
*.example.comcovers every subdomain without naming any. - Names that never had a public certificate, such as internal services that use a private certificate authority, or anything served only over plain HTTP. Internal names that did get a public certificate, on the other hand, are there for anyone to read.
- Whether a name is live. A name in a certificate means someone requested a certificate for it, maybe years ago.
2. Passive DNS and VirusTotal
Passive DNS sensors record the DNS answers they observe over time, so they hold names that never had a certificate. VirusTotal exposes what it has seen through its API: the subdomains relationship of a domain is listed in its documentation as accessible to everyone, not only Enterprise users. You need the API key of a free account:
curl -H "x-apikey: YOUR_KEY" "https://www.virustotal.com/api/v3/domains/example.com/subdomains"
It returns 10 results by default; the limit and cursor parameters page through the rest. Other passive DNS services, such as mnemonic and Robtex, publish resolutions with the first and last time each was seen. How to read those dates, and the shared hosting trap, are in our guide to reverse IP lookup.
3. Web archives: the hostnames of the past
The Wayback Machine has archived pages from many subdomains, some of them long gone. Its CDX API returns the archived addresses for a domain and all its subdomains when the address starts with *.:
https://web.archive.org/cdx/search/cdx?url=*.example.com/&fl=original&collapse=urlkey&limit=1000
fl=original returns only the archived address, collapse=urlkey keeps one line per address and limit caps the results; the documentation warns that collapsing can make the query slow. Pull the hostname out of each address and you have a list that reaches back years. Common Crawl keeps a similar archive of the web.
4. Search engines
A search for site:example.com -site:www.example.com shows indexed pages on subdomains other than www. Each time a new subdomain appears, add another -site: for it and search again. It is slow and only finds public web pages, but it sometimes turns up a forgotten page that no certificate would name.
5. Tools that ask many sources at once
subfinder, from ProjectDiscovery, describes itself as a fast passive subdomain enumeration tool. It is open source (MIT) and packaged in Kali (sudo apt install subfinder); with Go installed, go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest gets the latest version.
subfinder -d example.com -o subdomains.txt
subfinder -d example.com -all -o subdomains.txt
-all uses every source, which is slower; -ls lists them. Its README notes that many sources need API keys to work, and they go in $CONFIG/subfinder/provider-config.yaml. With no keys, it still queries the sources that do not ask for one.
theHarvester collects subdomains among other things, with sources such as crtsh and certspotter; the commands are in how to use theHarvester.
OWASP Amass, now at version 5, describes itself as attack surface mapping and asset discovery. In Kali it is one command, sudo apt install amass (Kali packages 5.1.3). Each release on GitHub (the latest is 5.1.3) comes with ready-built files for Linux, macOS and Windows, and its documentation also covers building it with go install, Homebrew (brew tap owasp-amass/homebrew-amass, then brew install amass), Docker, Docker Compose and third-party packages. It runs with amass enum -d example.com, and the rest of its commands are in how to use Amass. Before you point it at a domain that is not yours, read which techniques your configuration turns on: the same documentation shows an example with -active, and an active run touches the target.
6. Check which ones are live, and the wildcard trap
A list from all those sources mixes current names with dead ones. To sort them, resolve each name: nslookup name.example.com for one, or let subfinder do it with -nW, which shows only the subdomains that resolve, and -ip to add their address. A DNS lookup is an ordinary query, the same one a browser makes.
Before you trust the result, test one invented name, such as nothing-here-7731.example.com. If it resolves, the domain has a wildcard DNS record and every name you try will resolve too: "it resolves" then proves nothing, and only the sources above tell you which names were really used.
Then group the live names by IP address and by network. RIPEstat says who holds each block. Ten subdomains on a content delivery network say little; one on a small server of its own, next to the company's mail, is worth a closer look.
Pandora: the subdomains inside the case
Enter a domain in Pandora and it runs the passive sweep: DNS over HTTPS, RDAP and WHOIS, and subdomains from Certificate Transparency through crt.sh and Certspotter. Around them it adds passive DNS, reverse DNS and other sites that share an IP or an analytics ID, open ports and known vulnerabilities from what Shodan InternetDB already publishes, the network and its owner from RIPEstat, registered look-alike domains and URLs archived in Common Crawl and the Wayback Machine. Pandora does not scan anything: the subdomains come from what the certificate logs already recorded, and the ports from what InternetDB already publishes. Everything lands on a graph that grows live, each finding with its source, next to the accounts and people of the same case.
A new account gets one trial search with the findings masked: you see what kind of findings turned up and how many, not which ones. Plans are on the pricing page.
Keep it passive and lawful
A subdomain called vpn, staging or admin in a public log is a fact about a domain, not an invitation. Do not follow it with a login attempt, a port scan or a directory search on a system that is not yours: that is no longer open source research, and in many countries it is an offence. If you find something exposed by mistake, tell whoever runs the domain.
And if a subdomain or its owner identifies a person, you are processing personal data: under the GDPR you need a legitimate purpose and a legal basis, as we explain in OSINT and the GDPR. This article is not legal advice.
Where to go next
- Domain and IP reconnaissance with open sources, for the full passive method around a domain.
- crt.sh alternatives, when the certificate search is down.
- How to find who owns a domain, once you know what runs on it.
Frequently asked questions
How do I find all the subdomains of a domain?
No method guarantees all of them, because DNS has no public list of the names under a domain. Combine sources that have already seen them: Certificate Transparency logs, passive DNS and VirusTotal, web archives and search engines. Then check which names still resolve.
How can I find subdomains online for free?
Search crt.sh for %.example.com to see the names in certificates issued for the domain. VirusTotal's API, with a key from a free account, lists the subdomains it has seen. The Wayback Machine's CDX API returns archived addresses for *.example.com, which include old hostnames.
How do I find subdomains in Kali Linux?
subfinder is a passive subdomain tool from ProjectDiscovery, packaged in Kali: subfinder -d example.com queries its sources, and some of them work better with API keys. theHarvester and OWASP Amass also enumerate subdomains; check which techniques each one turns on before running it on a domain that is not yours.
Why doesn't a subdomain show up in crt.sh?
Because it never had a publicly trusted certificate of its own, because it is covered by a wildcard certificate such as *.example.com, or because crt.sh is failing at that moment. Certificate Transparency is one source among several, not a complete list.
Is it legal to look for a domain's subdomains?
Reading sources that have already published the names, such as certificate logs, archives or passive DNS, is open source research. Guessing names by brute force, asking for a zone transfer or probing the servers touches someone else's infrastructure, and needs the owner's written authorization. This is not legal advice.