Delete the CNAME that points at a name that does not exist
Why it matters
A CNAME in your zone points at a name that does not resolve, so the subdomain is broken and the record is clutter. If the target later becomes available to someone else, it can also turn into a takeover risk.
The fix
- Find the CNAME in the zone, using the name from the finding, and decide whether the subdomain is still wanted.
- If not, delete the record. If it is, point it at the correct current target.
- Check for references to the subdomain in your site, email links and monitoring, and update them.
- Review the zone for other records that point at names that no longer exist.
bash
# replace sub with the subdomain named in the finding dig CNAME sub.example.com +short dig sub.example.com
The examples use example.com. Replace it with your own domain.
Related
Scan your domain to see whether this applies to you.