On this page
What this issue is
A dangling record is a DNS record that points at something that no longer exists. The common case is a CNAME (an alias from one name to another) such as promo.brand.com pointing to brand-promo.s3-website-us-east-1.amazonaws.com, brand-promo.herokuapp.com or brand-promo.azurewebsites.net. Someone deletes the bucket or app, but nobody removes the DNS record.
The record keeps working as a pointer, but the target is gone. On some services the name is free for anyone to register again. If another person creates a bucket or app with the same name, your subdomain now serves their content. This is called a subdomain takeover. Whether it is possible depends on the service and its verification rules, so check each one.
Why it costs you leads or sales
If the subdomain is a landing page, tracking domain, form host or campaign URL, every click on it ends in an error page. Ads keep spending and nobody converts. Typical errors are S3 NoSuchBucket, Heroku No such app and Azure 404 pages.
The worse case is a takeover. A third party can host phishing or spam pages on your brand's domain, collect form data from your visitors, or in some setups read cookies scoped to the parent domain. That damages trust, can get your domain flagged by browsers and email filters, and is hard to undo once customers have seen it.
- Ad clickVisitor clicks a link to promo.brand.com
- DNS lookupCNAME still resolves to the old service
- Deleted targetBucket or app no longer exists
- Landing pageNever loads, or loads someone else's content
- Lead or saleNo conversion, no tracking hit
The ad and DNS work, but the target behind the subdomain is gone.
How to check if your site has it
Start by listing every record in your DNS zone, then test each CNAME that points to a cloud service. Export the zone from your DNS provider, or look at each subdomain you have used for campaigns, staging, docs or tracking.
Export your DNS zone
Download the zone file or copy all records from your DNS host (Cloudflare, Route 53, GoDaddy, your registrar and so on). Include every subdomain.
Pick out CNAMEs to cloud services
Look for targets ending in s3.amazonaws.com, s3-website, herokuapp.com, herokudns.com, azurewebsites.net, cloudapp.azure.com, trafficmanager.net, blob.core.windows.net and similar.
Resolve each one
Run dig or nslookup on the subdomain. A CNAME that returns NXDOMAIN for its target is a clear sign the resource is gone.
Open each subdomain in a browser
Look for NoSuchBucket, No such app, 404 Web Site not found or a parked page you do not recognise.
Compare with what you still own
Check your AWS, Heroku and Azure accounts. If the named bucket or app is not there, the record is dangling.
dig +short CNAME promo.brand.com
dig +short promo.brand.com
curl -sI https://promo.brand.com | head -n 5
# Look for NXDOMAIN on the target, or bodies containing NoSuchBucket / No such appHow to fix it
You have two options for each dangling record: delete it, or point it at a live resource. Do it fast, because a free name can be claimed at any time.
Decide if the subdomain is still needed
Check ad URLs, email links, sitemaps and your analytics for traffic to it.
If not needed, delete the DNS record
Remove the CNAME (and any A, AAAA or TXT verification records tied to it) in your DNS host.
If still needed, repoint it
Change the CNAME to a live host, or recreate the resource and make sure the name matches. Add the custom domain in the service so it is verified to your account.
Redirect old URLs
If you retire a landing page, send its address to a current page with a 301 redirect on a host you control.
Review other records
Repeat the check across the whole zone and across old domains you still own.
AWS S3 and Route 53
In Route 53, open Hosted zones, select the zone, tick the record and choose Delete. If you want to keep the name, recreate the bucket with the exact name and region first.
Heroku
Delete the DNS record at your DNS host. If the app still exists, check Settings, Domains in the app and remove domains you no longer use.
Azure
Delete the record in Azure DNS or your DNS host. For App Service, add the custom domain under Custom domains and use the domain verification ID so only your subscription can claim it.
Check hosting aliases
If the site moved hosts, remove old CNAMEs or domain mappings in your host panel and your DNS provider, not only in WordPress settings.
Remove the custom domain
In Project settings, Hosting, Custom domains, remove the domain, then delete the matching DNS record at your DNS host.
Remove the domain connection
In the domain settings of your sub-account, remove the custom domain, then delete the CNAME at your DNS host.
How to confirm it's fixed
- dig for the subdomain returns no record, or a target you own
- The URL loads your page over HTTPS with a valid certificate
- No NoSuchBucket, No such app or 404 error page appears
- Cached results are gone after the record TTL has passed
- Every other CNAME in the zone points at a live resource
- Your ad and email links to the subdomain land on the right page
How to prevent it happening again
Dangling records appear when resources are shut down without a DNS cleanup. Make DNS part of the decommission process.
- Delete the DNS record first, then the cloud resource
- Keep a list of every subdomain, who owns it and what it points to
- Use domain verification options on Azure and similar services
- Review the zone every quarter and after every agency or vendor change
- Limit who can edit DNS and log changes
- Remove records for finished campaigns and old test environments
How FunnelGuard handles this
FunnelGuard does not check for dangling DNS records yet. It is a possible future check. It does not scan your zone or look for takeover risk.
What it does cover nearby: if a live funnel URL is affected, a scheduled run of that journey from the EU or US would fail at the first step, and you get one alert with a screenshot and a likely cause after a second-region recheck. That only helps for subdomains used in a monitored journey, not for forgotten records nobody visits.
To watch for this yourself, export your DNS zone each quarter and run the dig checks above, or use a DNS audit tool from your DNS provider or cloud account. A free read-only FunnelGuard website audit is also available, but it is not a DNS takeover scan.
Dangling record
- CNAME points at a deleted bucket or app
- Visitors see an error page
- Name could be claimed by someone else
Cleaned up
- Record deleted or repointed to a live host
- Page loads and converts
- Only you control the subdomain
Questions people ask
What is a dangling DNS record?
It is a DNS record, usually a CNAME, that points to a resource that no longer exists, such as a deleted S3 bucket or Heroku app. The record stays in your zone and keeps sending visitors to a dead target. On some services someone else can register that name and take over your subdomain.
Why does my subdomain show NoSuchBucket?
Your DNS record still points to an S3 bucket that was deleted or renamed. S3 answers that no bucket with that name exists. Recreate the bucket with the exact name, or delete or repoint the DNS record.
How do I find dangling CNAME records?
Export your DNS zone, list the CNAMEs that point to cloud services, and resolve each with dig or nslookup. Then open each subdomain in a browser and look for error pages such as No such app or NoSuchBucket. Compare the names with the resources in your cloud accounts.
What is a subdomain takeover?
It happens when a subdomain points to a service resource that was deleted, and someone else creates a resource with the same name. Your subdomain then serves their content. It can be used for phishing, spam or collecting data from your visitors.
Is a dangling record dangerous if nobody visits the subdomain?
Yes, it can be. An attacker does not need your traffic to abuse it, and a hijacked subdomain can hurt your brand and email reputation. Remove unused records even when the page looks forgotten.
Should I delete the DNS record or the cloud resource first?
Delete the DNS record first, then the resource. That avoids a window where the name points to something that can be claimed. If you must keep the name, recreate the resource and verify the domain to your account.
Does FunnelGuard detect dangling DNS records?
No. FunnelGuard does not check for dangling records yet, and it is a possible future check. It can catch a broken live funnel URL during a scheduled journey run, but it does not scan your DNS zone.
Related issues
- OPS-035Dangling CNAME to deprovisioned service (subdomain takeover)Fix guide
- OPS-030NXDOMAIN for a funnel subdomain (e.g. go.brand.com)Fix guide
- OPS-037Wildcard DNS serving unexpected contentFix guide
- OPS-028DNS change made by someone without noticeFix guide
- OPS-027A/AAAA record points to old serverFix guide
- OPS-031Nameservers changed / lapsed DNS hostingFix guide