CNAME check: test a CNAME chain and its target
Follow the CNAME of a domain or subdomain step by step to its IP address and spot dangling records that would let others take over your subdomain.
Check CNAME
Enter the name you want to check, usually a subdomain such as www.your-domain.co.uk or shop.your-domain.co.uk.
Checking the DNS records …
Lookups run through the Quad9 DNS resolver (Switzerland). We keep the checked domain and an anonymised IP address for no longer than 30 days.
How CNAME records work
What is a CNAME?
A CNAME (canonical name) makes one name an alias of another. If shop.your-domain.co.uk points via CNAME to yourshop.platform.com, DNS returns that target's IP address. When the provider changes its servers, you do not need to change anything. That is the big advantage over a fixed A record.
Chains and where they end
A CNAME can point to another CNAME. The chain must always end at a name with an A or AAAA record. Every step costs an extra lookup, so chains should stay short. If two names point at each other in a circle, the name cannot be reached at all.
Dangling CNAMEs and subdomain takeover
When you cancel a service, the CNAME often stays and points to a name that no longer exists. Whoever registers that name on the platform suddenly controls your subdomain and can, for example, show phishing pages under your domain. Our check spots such dangling CNAMEs.
Common CNAME mistakes
CNAME on the main domain
A CNAME is not allowed on your-domain.co.uk itself, because SOA and NS records must sit there. Use an A record or, if your DNS provider supports it, ALIAS or ANAME.
Dangling CNAME after cancelling
Delete CNAMEs straight away when you cancel a service such as a shop, a help desk or a landing page platform.
CNAME next to other records
A name with a CNAME must not have any other records, such as MX or TXT. Many DNS interfaces prevent this, some do not.
Frequently asked questions
How do I check a CNAME record?
Enter the name above, for example www.your-domain.co.uk. The CNAME check shows the complete chain to the IP address and warns about loops, chains that are too long and dangling targets.
When do I use CNAME and when A?
Use an A record when you know the IP address and it rarely changes. Use a CNAME when a service provider gives you a hostname, for example for a shop, CDN or newsletter tracking.
Why is a CNAME not allowed on the main domain?
A CNAME rules out every other record for the same name. But the main domain must have SOA and NS, and usually MX too. Some DNS providers offer ALIAS or ANAME records for this, which work like a CNAME but are served as an A record.
What is a subdomain takeover?
If your CNAME points to a name on a platform that no longer exists, someone else can register it there. From then on, your subdomain serves their content. So delete dangling CNAMEs straight away.
How long may a CNAME chain be?
There is no fixed limit, but many resolvers give up after about eight steps. Every step takes time. More than two or three hops are rarely needed.
Why does the check find no CNAME on my domain?
Because CNAMEs usually sit on subdomains, such as www. Check exactly the name that is set up as an alias.
More free tools
Check domains and websites with our free tools – quickly and without signing up.
Website Status Checker
Check whether a website is online, how quickly it responds and how long its SSL certificate remains valid.
Open tool InfrastructureWHOIS & hosting check
Identify a domain's hosting provider, IP address, nameservers and likely server location.
Open tool DNS & emailSPF, DMARC & DKIM generator
Create the email records for your domain in a minute – ready to copy, with every setting explained.
Open tool Continuous monitoringWebsite monitoring
Monitor websites and servers around the clock and receive immediate alerts by email, SMS or phone call when something goes down.
Open tool DomainDomain checker
Check suitable domain names and find out which extensions are available for your project.
Open tool Hosting selectionWeb hosting advisor
Answer a few questions about your website, application and requirements to find suitable plans from our hosting comparison.
Open tool Personal serviceHosting tender
Describe your project and receive non-binding, individually matched offers directly from hosting providers.
Start tender