Subdomain Finder

Find subdomains from certificates that were actually issued.

Certificate Transparency changed subdomain discovery. Since browsers began requiring it, every certificate a public CA issues is written to an append-only public log — including the hostnames it covers. That makes the logs an authoritative, permanent, freely searchable record of names that genuinely existed, with none of the false positives a brute-force wordlist produces.

The security consequence cuts both ways, and it is worth being clear about. Requesting a certificate for secret-staging.example.com publishes that hostname to the world within minutes. Anyone can read it. This is a deliberate trade — the logs are what make certificate misissuance detectable — but it means a hostname is not a secret, and anything relying on an unguessable name for protection is already exposed.

For defenders this is the fastest honest inventory of an attack surface. Run it against your own domain and the results are frequently uncomfortable: a forgotten staging environment, a legacy application nobody owns, a subdomain pointing at a decommissioned cloud resource. Those are exactly what an attacker enumerates first, from the same public source.

How to Find All Subdomains of a Domain

No single public source lists every subdomain of a domain. Each method sees a different slice, and the honest way to build a full list is to combine them. Certificate Transparency, which this tool reads, is the best free starting point because it is passive, complete for publicly certified names, and has no false positives. It is not the whole picture.

MethodWhat it findsWhat it misses
Certificate Transparency logsEvery name that has had a certificate from a public CA, including retired ones.Hosts covered only by a wildcard certificate, hosts on a private CA, and hosts that never had a certificate.
DNS brute force (a wordlist)Names that are on the list and resolve today.Anything not on the list. A wildcard DNS record makes every guess appear to resolve, so results need checking against it.
Zone transfer (AXFR)The complete zone, when a nameserver allows it.Almost everything in practice: correctly configured nameservers refuse transfers to strangers.
Passive DNS datasetsNames that resolvers have been seen looking up, often with history.Names nobody has queried. Most large datasets are commercial.
Search enginesHosts with public web pages that have been indexed.APIs, mail hosts, admin panels and anything blocked from crawling.
Your DNS provider’s zone exportEvery record that exists now, for a domain you control.Nothing current. It cannot show what existed before, or names served by another provider.

For a domain you own, the zone export from your DNS provider is the authoritative answer for what exists today, and the certificate logs are the answer for what existed before. The gap between the two lists is where forgotten infrastructure usually turns up. Brute forcing and zone transfer requests send traffic to someone's nameservers, so run them only against domains you own or have written permission to test.

Reading the Results

Each row is one hostname found in at least one logged certificate. Certificates counts the log entries that name it. One certificate can appear twice, once as a precertificate and once as the final certificate, and every renewal adds more, so a host that renews automatically every few months builds up a large count quickly. A count of one or two usually means a host that was set up once and never renewed.

Last seen is the start date of the newest certificate that names the host. A recent date means something is still renewing a certificate for it. A date years in the past usually means the host was retired. That still leaves one thing to check: whether its DNS record was removed too.

Wildcard entries such as *.example.com are listed first. A wildcard tells you how the domain is managed, but nothing about which hosts sit beneath it, so a domain that uses one widely will show far fewer names here than it really has. The tool reads the newest 1,500 certificates for the domain, expired ones included, and lists up to 500 names. On a very large domain, older names can fall outside those limits; for a full history, query the logs directly as shown below.

Searching the Logs Yourself

This tool queries crt.sh, a free Certificate Transparency search run by Sectigo, and you can query it directly to get a plain list for a script. %25 is an encoded %, crt.sh's wildcard, so the query matches every name ending in the domain:

# macOS / Linux (needs jq)
curl -s 'https://crt.sh/?q=%25.example.com&output=json' \
  | jq -r '.[].name_value' | tr 'A-Z' 'a-z' | sort -u > subdomains.txt

# Windows PowerShell
(Invoke-RestMethod 'https://crt.sh/?q=%25.example.com&output=json').name_value -split "`n" |
  Sort-Object -Unique | Set-Content subdomains.txt

Expect it to be slow: a busy domain can take twenty seconds or more, and the service sometimes returns an error under load. When the web search is down, crt.sh also offers read-only access to the same database over PostgreSQL, as the user guest on crt.sh:5432 (database certwatch). Please keep queries modest, because it is a free service that many people rely on.

Checking Which Subdomains Are Still Live

The logs are a history, so the next step is to resolve each name and see what answers today. Skip the wildcard lines first, since they are not real hostnames:

# macOS / Linux
grep -v '^\*' subdomains.txt | while read -r host; do
  echo "$host -> $(dig +short "$host" | tr '\n' ' ')"
done

# Windows PowerShell
Get-Content subdomains.txt | Where-Object { -not $_.StartsWith('*') } |
  ForEach-Object { Resolve-DnsName $_ -ErrorAction SilentlyContinue |
    Select-Object Name, Type, IPAddress, NameHost }

Each answer falls into one of three cases. An address comes back: the host is live, and it belongs in your inventory with an owner and a certificate that is monitored for expiry. Nothing comes back: the DNS record has been removed, so the old certificate entry is just history. A CNAME comes back, pointing at a cloud service name that no longer resolves: this is a dangling record. If the old cloud resource can be claimed again by someone else, so can your subdomain. This is the classic subdomain takeover.

The CNAME Lookup shows where an alias points, and the DNS Lookup shows every record type for a single host.

What to Do With What You Find

Run it against your own domain first. The usual findings, in the order they are worth fixing: a dangling CNAME, which you fix by deleting the record, or by reclaiming the resource and then deleting the record; a live host nobody can name an owner for, which should be either adopted or shut down; and a staging or admin host that is reachable from the internet when it should not be.

Hostnames will keep appearing in the logs for as long as you issue public certificates, so a one-off search goes stale. Watching the logs for new certificates is what catches a new host, or a certificate you did not request, while it still matters. The Certificate Transparency Checker shows the full certificate history behind these names, including which CA issued each one.

What this tool does

Evidence, not guesses

Every name came from a real certificate in a public log, so there are no false positives from a wordlist.

Finds what you forgot

Staging, admin and legacy hosts get certificates too, and the log remembers them long after the team has.

Dated

Each name shows when it was last seen in a new certificate, which separates live infrastructure from history.

Passive

Nothing is sent to the target domain. This reads a public log, so the domain owner sees no traffic from it.

Frequently asked questions

How does this find subdomains?

It queries Certificate Transparency logs, which record every certificate issued by a publicly trusted CA along with the hostnames it covers. Any subdomain that has ever had a certificate appears there permanently, whether or not it still resolves.

Why do some results not resolve?

Because CT logs are historical. A name that had a certificate two years ago is in the log forever, even if the host was decommissioned. That history is useful — a name that no longer resolves but still has a DNS record pointing at a deleted cloud resource is exactly the subdomain-takeover setup.

Will this find every subdomain?

No. It only finds names that appear in publicly logged certificates. Internal hosts, names using a private CA, and anything covered only by a wildcard certificate are invisible to it. A wildcard tells you nothing about which hosts exist beneath it, and this tool does not invent them.

Is running this against a domain I do not own legal?

It reads a public log and sends nothing to the domain. Certificate Transparency is published deliberately, and querying it is no different from reading any public record. Acting on what you find against someone else's infrastructure is a separate question entirely.

How do I keep a subdomain out of the logs?

You cannot, for a publicly trusted certificate — logging is mandatory and browsers reject certificates without it. The options are a wildcard certificate, which hides the specific hostname, or an internal CA for hosts that never face the public internet. The right conclusion is that hostnames are not secrets.

Why is the tool sometimes slow or unavailable?

It reads crt.sh, a free public service run by Sectigo that aggregates the logs. It is generously provided and frequently under load. A timeout means the log service did not answer, which is reported as itself rather than as "no subdomains found".

Monitor it, don't just check it

One-off checks catch what is broken today. CertNotify re-checks your certificates and domains every day and emails you before either expires; paid plans add a daily DNS check and a scan of connected repositories on every push.

Related free tools