A subdomain is a prefix added to a domain name that separates a section of a website or points traffic to a different service entirely. In blog.example.com, the subdomain is blog, the domain is example, and the top-level domain (TLD) is .com. Subdomains are free to create — you don't need to register a new domain — and they resolve through the same DNS hierarchy as the parent domain.
When a browser requests api.shopify.com, the resolver first queries the .com nameservers, then the authoritative nameservers for shopify.com. Those nameservers hold a special resource record — an A record (for IPv4) or CNAME (for an alias) — that maps api.shopify.com to a specific IP address. If no record exists, the DNS query returns NXDOMAIN and the browser shows an error. Crucially, subdomains can point to completely different servers than the main domain, or even to third-party services like CDNs and SaaS platforms.
www to the apex domain or vice versa, but the record still exists in DNS.mail.example.com for mail delivery routing.A wildcard DNS record (*.example.com) matches any subdomain that doesn't have its own explicit record. This is useful for multi-tenant SaaS apps where every customer gets customer.app.com, or for vanity URL systems. However, wildcards can mask orphaned services — if a developer spins up debug-example.example.com, the wildcard catches it even if the team forgets it exists. Wildcards also make brute-force subdomain enumeration impractical, since every guessed name resolves successfully.
Forgotten subdomains are one of the most common — and most dangerous — security blind spots in any organization's infrastructure.
Teams create subdomains for projects, experiments, and temporary services. When the project ends, the DNS record often survives. An orphaned subdomain might still point to a decommissioned server, an outdated CMS with known vulnerabilities, or an internal tool that was never meant to be public. Bug bounty hunters and attackers specifically hunt for these because they're soft targets.
When a subdomain points to a third-party service (via CNAME) and that service is deactivated or the account is closed, the DNS record remains. An attacker registers the abandoned resource on the third-party platform, gaining full control of the subdomain. This is called a subdomain takeover and can lead to cookie theft, phishing pages hosted on a legitimate domain, and complete reputation damage. Famous examples include takeover of Heroku, GitHub Pages, and Shopify-hosted subdomains.
Subdomain names themselves reveal information: staging-crm.example.com tells an attacker what CRM you use, jenkins-prod.example.com exposes your CI/CD tool, and vpn.example.com pinpoints your remote access gateway. Even without accessing the service, knowing it exists narrows the attack surface.
Enumeration is the first step in most reconnaissance workflows. Here are the main techniques:
AXFR), an attacker can download the entire DNS record set for the domain in a single request. This reveals every subdomain instantly.site:example.com -www, Wayback Machine snapshots, and Shodan all index subdomains over time, building a historical record even after records are removed.Discover forgotten, leaked, and orphaned subdomains in seconds — using certificate transparency logs and live DNS checks.
Launch Subdomain Finder →