CNAME Lookup
See which hostname a subdomain is an alias of, such as www pointing to a hosting or CDN provider.
Jump to toolWhat Is a CNAME Record?
A CNAME (canonical name) record makes one hostname an alias of another. For example, www.example.com can point to example.com or to a hosting provider's hostname, and resolvers then follow the target to find its addresses.
This tool queries the CNAME record for a hostname and shows its target. A CNAME cannot sit at the root of a domain alongside its other records, so look it up on subdomains such as www.
How to Check a CNAME Record
- Enter the subdomain to check, such as www.example.com.
- Select Lookup CNAME.
- Read the target hostname the alias points to.
- If nothing comes back, the name has no CNAME and uses its own address records.
Reading the Result
If the name is an alias, the result shows the target hostname with the record's TTL; copy it with the button beside the value.
If nothing is returned, the name is not an alias: it either has its own A or AAAA records or does not exist.
CNAME Examples
| Record | What it does |
|---|---|
| www.example.com CNAME example.com | Makes www follow whatever the bare domain points to |
| shop.example.com CNAME shops.myshopify.com | Hands the subdomain to a hosted shop |
| cdn.example.com CNAME d111111abcdef8.cloudfront.net | Serves files through a CDN |
CNAME Rules to Know
- A name with a CNAME cannot have any other records, such as MX or TXT.
- The bare domain (example.com) cannot be a CNAME; providers offer ALIAS, ANAME or CNAME flattening instead.
- MX and NS records must not point to a CNAME.
- Chains of aliases work but slow lookups down; point straight to the final name.
Dangling CNAMEs and Subdomain Takeover
If a CNAME still points to a service you have cancelled, such as an old hosting app or storage bucket, someone else may be able to claim that name on the service and serve content on your subdomain.
Remove CNAME records as soon as you stop using the service they point to.
CNAME Lookup FAQ
See every record for the domain
Check its A, AAAA, MX, TXT, NS, CNAME and SOA records together.
Related Tools
Tools that often come next after this one