Trace a dangling CNAME to the service it names

  • For a name such as help.yoursite.com, inspect its DNS record and follow the target to the hosting provider. Confirm whether your account still controls the resource and whether the address is still in use.

  • The OWASP takeover testing guide describes how to trace DNS targets and assess the services they reach.

Remove dangling CNAME records when leaving a host

  1. 1

    Remove or replace the record before retiring the resource

    Point the name elsewhere or delete its record before you release the old service, so the name never points at a resource someone else could claim.

  2. 2

    Review the other names attached to the same account

    Look for forgotten preview sites, support pages and campaign addresses. Keep each active name attached to a resource you control, and remove records for names you've retired.

Investigate a possible subdomain takeover

  • If an abandoned name serves content you didn't publish, remove or correct the DNS record and investigate the resource with the hosting provider.

  • Microsoft's dangling DNS guidance explains how a deleted resource can leave an organization's name pointing at someone else's service.

Frequently asked questions

Does every broken subdomain mean someone can take it over?

No. A broken DNS record or unavailable page doesn't mean the provider will let someone else claim the target. Check the specific provider and resource before treating it as a confirmed takeover.

  • Domain health

    Fix the setup mistakes that make browsers warn people away from your site.

  • DNSSEC

    Learn what DNSSEC protects and whether to turn it on for your domain.

  • CAA record

    Limit certificate issuance to the authorities your hosting setup needs.