Want the result for your own domain?

Enter a domain on the home page and get a free A–F security grade with the full report — no signup required.

Subdomain Takeover Explained: Dangling DNS & Free Check (2026)

7 min read · Updated 2026-10-31

Most organisations have subdomains they used once and forgot: a campaign page, a test environment, a blog that was retired. The problem is that if such a subdomain is a CNAME to a cloud service and that cloud resource has since been deleted, an attacker can register the same resource name — and your subdomain now serves their content.

That is subdomain takeover. It requires no breach of your servers, only one DNS record nobody removed.

How it happens

  • You create a cloud resource — object storage, a pages-style static host, a Heroku-like app, a CDN origin — and point shop.example.com at it with a CNAME.
  • The project is retired and the cloud resource is deleted, but the CNAME record is left behind in DNS.
  • An attacker finds that dangling CNAME and registers a resource of the same name with the same provider.
  • DNS now resolves to the attacker's content — your subdomain displays whatever they publish.

Why the impact is bigger than it looks

The address bar still shows your domain, so all the trust comes from your brand. That makes it ideal for highly convincing phishing pages.

It can also be used to send mail: if the subdomain has SPF or DKIM configured, an attacker may be able to send forged mail that passes validation under your name.

Beyond that: malware distribution, SEO hijacking, and even cookie theft through same-site relationships.

How to check your own domains

  • Enumerate every subdomain: certificate transparency logs, DNS enumeration, and your internal asset inventory, cross-checked against each other.
  • Inspect each CNAME: does the target still exist, or does it return a dangling signal such as "NoSuchBucket", "resource not found" or an unconfigured 404?
  • If it dangles, act: delete the DNS record, or recreate the cloud resource and confirm it belongs to you.
  • Fix the process: DNS cleanup must be a required step whenever a project is decommissioned.

Keeping it from coming back

Make "subdomain inventory plus dangling-CNAME detection" a recurring job rather than a one-off audit — temporary subdomains keep appearing.

Add your own domains to CyberTrust and the exposure section of the report lists the externally visible subdomains; reviewing that regularly shrinks the blind spot substantially.

The three shapes a takeable subdomain takes

Almost every takeover is one of three things, and once you know them the check is quick.

A dangling CNAME: a subdomain still points at a cloud resource that has been deleted — an abandoned Heroku app, an S3 bucket, a CloudFront distribution. The attacker claims a resource with the same name, and your subdomain starts serving their content while the address bar still shows your domain.

An unclaimed subdomain: a wildcard DNS record sends every undefined host to a hosting provider, and that provider offers free subdomains on the same domain. The attacker registers one, publishes a page there, and inherits your parent domain's trust.

A dangling NS: the subdomain delegates to a nameserver that no longer exists. It is rarer, but the effect is the same and it is easy to miss because the record looks configured.

In all three cases the subdomain is not a secret. Certificate transparency logs, passive DNS and the DNS records themselves are enough to find it — which is why the reliable defence is inventory, not vigilance.

What to do the moment you find a dangling record

  • Delete the DNS record if the service is gone. It serves no purpose and only creates risk.
  • If the service still exists, point the record at something you control and verify the CNAME target actually responds — a record pointing at a resource that no longer exists is the definition of dangling.
  • Replace a wildcard record with explicit records for the hosts you actually use.
  • Watch the takeover risk specifically. A subdomain that resolves to a provider with free subdomains is a live phishing domain until you take it back, and it will be used against your customers within days.

FAQ

Q: What is a subdomain takeover?
A: When a subdomain's CNAME points at a cloud resource that has been deleted, an attacker can register a resource of the same name and make your subdomain serve their content. Because the address bar still shows your domain, it is widely used for phishing and forged email.
Q: How do I know whether I am exposed?
A: Enumerate all your subdomains and check whether each CNAME target still exists; a "resource not found" style response means it is dangling and takeover is possible. Delete the DNS record or reclaim the cloud resource immediately.
Q: Is deleting the DNS record enough?
A: For that record, yes — but the risk recurs. Make subdomain inventory and dangling-CNAME checks a recurring task, and add DNS cleanup to your project decommissioning checklist.

Related reading