Subdomain checker

Short answer

How do I find all subdomains of a domain?

You find the subdomains of a domain by searching the public certificate logs (Certificate Transparency), where every certificate for websites is recorded. Enter company.com and the tool shows names like mail.company.com and invoice.company.com, and whether each has SPF and DMARC. Unprotected subdomains can be used for fake email.

Enter the domain. The lookup can take up to half a minute.

Why subdomains

Attackers like to send from a subdomain like invoice.company.com. If the main domain has sp=none or p=none, the subdomains are unprotected. Subdomains that do not send email should have v=spf1 -all.

How to use the tool

Enter the main domain, for example company.com. We fetch the names from the certificate logs and try a list of common names like www, mail, webmail and vpn. For every subdomain that exists, we look for SPF and DMARC.

Go through the list and ask yourself whether each name is still in use. Old subdomains that point to services you no longer use should be removed from DNS.

How to protect subdomains

  • Set sp=reject in the DMARC record for the main domain when all senders are in place. The policy then covers every subdomain without its own DMARC record.
  • Give subdomains that do not send email the SPF record v=spf1 -all.
  • Subdomains that send, like newsletter.company.com, need their own SPF and DKIM for the sending service.
  • Remove CNAME records that point to discontinued cloud services. Otherwise others can take over the name.

Questions and answers

Where do the names come from?

From public certificate logs via crt.sh and Cert Spotter, and a list of common names.

Why are some subdomains missing from the list?

Subdomains without their own certificate, or covered only by a wildcard certificate (*.company.com), do not appear by name in the certificate logs. We only find them if the name is in the list of common names.

Is it dangerous that the subdomains are public?

No, the certificate logs are public by design. What matters is that each subdomain is protected, not that the name is secret.

What is subdomain takeover?

When a subdomain points to a cloud service you stopped using, an attacker can register the same service and show their own content on your name. Remove such records.