{"id":"https://www.namesilo.com/questions/dns-and-email/what-is-a-dangling-cname-and-why-is-it-dangerous","url":"https://www.namesilo.com/questions/dns-and-email/what-is-a-dangling-cname-and-why-is-it-dangerous","title":"What is a dangling CNAME, and why is it dangerous?","description":"A dangling CNAME is an alias left pointing at a resource that has been removed or is no longer controlled as intended. Microsoft’s subdomain-takeover…","language":"en","category":"dns-and-email","datePublished":"2026-11-17","dateModified":"2026-11-19","answer":"A dangling CNAME is an alias left pointing at a resource that has been removed or is no longer controlled as intended. Microsoft’s subdomain-takeover guidance explains that an attacker may be able to claim the abandoned service resource and use the alias. The risk depends on that service’s ownership controls, so investigate the target before calling a record exploitable.","body":"What is a dangling CNAME, and why is it dangerous?\n\nA dangling CNAME is an alias left pointing at a resource that has been removed or is no longer controlled as intended. Microsoft’s subdomain-takeover guidance explains that an attacker may be able to claim the abandoned service resource and use the alias. The risk depends on that service’s ownership controls, so investigate the target before calling a record exploitable.\n\nRetire the DNS binding with the service\n\nRemove an obsolete alias as part of decommissioning, and verify every remaining custom-domain association. NameSilo’s DNS operation supports CNAME records with a target hostname in rrvalue. Keep the DNS owner, service account and responsible team together in the asset inventory.\n\nYour next steps\n\nIdentify the service behind the CNAME\n\nVerify its current ownership and custom-domain binding\n\nRemove the obsolete alias when retiring the service\n\nRetest the hostname after cleanup\n\nRetire the DNS binding with the service\n\nRemove an obsolete alias as part of decommissioning, and verify every remaining custom-domain association. NameSilo’s DNS operation supports CNAME records with a target hostname in rrvalue. Keep the DNS owner, service account and responsible team together in the asset inventory.\n\nVerified detail: Microsoft describes dangling DNS and takeover of abandoned cloud resources.\n\nYour next step: Retest the hostname after cleanup.","steps":["Identify the service behind the CNAME","Verify its current ownership and custom-domain binding","Remove the obsolete alias when retiring the service","Retest the hostname after cleanup"],"faqs":[],"sources":[{"name":"Microsoft Azure: prevent dangling DNS and subdomain takeover","url":"https://learn.microsoft.com/en-us/azure/security/fundamentals/subdomain-takeover"},{"name":"NameSilo Add DNS Records","url":"https://www.namesilo.com/api-reference/pages?uid=dns/dns-add-record"}],"json":"https://www.namesilo.com/questions/data/what-is-a-dangling-cname-and-why-is-it-dangerous.json","markdown":"https://www.namesilo.com/questions/data/what-is-a-dangling-cname-and-why-is-it-dangerous.md"}