# What is subdomain takeover after canceling a hosted service?

Canonical: https://www.namesilo.com/questions/privacy-and-security/what-is-subdomain-takeover-after-canceling-a-hosted-service

Published: 2026-11-17

Last updated: 2026-11-20

Topic: Privacy & security

A subdomain takeover can occur when a DNS record still points to a deleted service resource that another account can claim. Microsoft’s Azure guidance illustrates this with a dangling CNAME pointing at a deprovisioned application. The resulting risk depends on the target service and its ownership controls.

Remove the obsolete mapping during retirement

Inventory the custom hostname before deleting the resource and make removal of its DNS mapping part of the same retirement plan. Microsoft also describes asuid TXT verification for Azure App Service, which prevents another subscription from validating that custom domain; it does not stop another account from creating a resource with the old service name.

Your next steps

Identify DNS names pointing to the resource

Check provider ownership protections

Remove obsolete mappings in the retirement plan

Verify remaining names resolve to approved resources

Remove the obsolete mapping during retirement

Inventory the custom hostname before deleting the resource and make removal of its DNS mapping part of the same retirement plan. Microsoft also describes asuid TXT verification for Azure App Service, which prevents another subscription from validating that custom domain; it does not stop another account from creating a resource with the old service name.

Verified detail: Azure dangling CNAME scenario, decommissioning and asuid protection limitation.

Your next step: Verify remaining names resolve to approved resources.

## Sources

- [Microsoft Azure: prevent dangling DNS and subdomain takeover](https://learn.microsoft.com/en-us/azure/security/fundamentals/subdomain-takeover)
