CNAME Lookup: Check the CNAME Record of Any Hostname
Enter a hostname to see its live CNAME target and TTL. Verify aliases for websites, CDNs, branded tracking links and email platforms in seconds.
Results
- Free CNAME lookup
- Live DNS results
- No signup required
What does this CNAME lookup show?
Everything you need to confirm that an alias is published and points to the right place.
CNAME target
The canonical hostname your alias points to, exactly as it is published in DNS.
TTL
How long resolvers cache the record, in seconds. It tells you how long an old value can keep showing after a change.
Alias or direct record
Whether the hostname is an alias, or resolves directly with A or AAAA records and has no CNAME.
Email platform CNAMEs
Confirm the branded link, tracking or return-path CNAMEs that platforms such as SendGrid, Mailchimp or HubSpot ask you to add. For DKIM CNAMEs such as s1._domainkey, use the DKIM checker.
CDN and custom domains
Check that www or a subdomain points to your CDN, website builder or SaaS custom domain before you switch traffic.
Live DNS answer
Each lookup runs a fresh DNS query when you click, so you see the currently published answer rather than a stored database copy.
How to check a CNAME record
Five steps to confirm that an alias is live and correct.
Enter the full hostname
Type the exact name that should carry the alias, such as www.example.com or links.example.com. CNAME records live on subdomains, so the root domain usually returns nothing.
Run the lookup
mailX queries DNS and returns the CNAME target and its TTL, or tells you that no CNAME exists for that name.
Compare with your provider
Match the target character by character with the value your CDN, website builder or email platform gave you. A single typo is enough to break the alias.
Fix the record if needed
If nothing comes back, check the record name in your DNS host. Many DNS hosts add your domain automatically, so entering www.example.com creates www.example.com.example.com.
Re-check after the TTL
Run the lookup again once the previous TTL has passed. Most changes are visible within minutes, but an old value can stay cached for as long as its TTL.
What is a CNAME record?
A CNAME (Canonical Name) record makes one hostname an alias of another. When a resolver looks up the alias, DNS returns the canonical name, and the resolver then looks up that name to get the final IP address.
CNAMEs are used when a third party controls the destination: a CDN, a website builder, a SaaS custom domain or an email platform. You point your subdomain at their hostname once, and they can change their IP addresses without asking you to update DNS.
Three rules explain most CNAME problems. A CNAME must point to a hostname, never to an IP address. A name that has a CNAME cannot hold any other record, so you cannot add a TXT or MX record on the same name. And the root domain (example.com) cannot be a CNAME, because it already holds the SOA and NS records. For the root, DNS providers offer ALIAS, ANAME or CNAME flattening instead.
A CNAME record in DNS:
How it resolves:
Related mailX tools
Check the other records that usually come with a CNAME change.
DNS Lookup
See every record type for a hostname in one query: A, AAAA, CNAME, MX, NS, TXT and SOA.
TXT Lookup
List the TXT records of a domain, including SPF and domain verification tokens.
DKIM Checker
Validate DKIM keys, including keys published through CNAME records such as Microsoft 365 selector1 and selector2.
Common CNAME errors this lookup reveals
If the result is not what you expected, it is usually one of these.
No CNAME on the root domain
A lookup on example.com returns no CNAME because the root cannot be an alias. Look up the subdomain instead, or use your DNS provider's ALIAS or flattening feature.
Doubled record name
The record was saved as www.example.com.example.com because the DNS host appended the domain. Enter only www in the name field.
CNAME next to other records
A CNAME cannot share its name with TXT, MX or A records. Most DNS hosts refuse the change, and the ones that accept it give unpredictable answers.
Wrong or truncated target
The target does not match what your provider asked for, often because of a typo, a missing part of the hostname or an extra dot in the middle.
Old value still cached
You changed the record but still see the previous target. Wait for the old TTL to expire, then run the lookup again.
Proxied or flattened record
With Cloudflare proxying or CNAME flattening, public DNS returns IP addresses instead of the CNAME. That is expected for website traffic, but email CNAMEs (DKIM, return path, tracking links) must be set to DNS only or they fail.
CNAME and DNS guides
Go further on DNS records and how they affect email.
What Is a CNAME in DNS?
How CNAME records work, when to use them and the rules that trip people up.
DNS Record Types Explained
A, AAAA, CNAME, MX, TXT and PTR records, and the role each one plays in email deliverability.
DNS Guide: Records, Lookup and Configuration
The complete guide to reading, checking and fixing the DNS records your domain depends on.
How to look up a CNAME from the command line
mailX gives you the answer in the browser, but you can run the same check from a terminal. These commands query the CNAME record of www.example.com. Replace it with your hostname.
If no CNAME line appears (nslookup and Resolve-DnsName may show an SOA record instead), the name has no CNAME: it holds other records, is proxied, or does not exist. Use mailX when you want the result without installing anything, or when you need to share it with a colleague or a client.
macOS and Linux (dig):
Windows (Command Prompt):
Windows (PowerShell):
Reading your CNAME lookup results
What each result means and what to do next.
CNAME record found
The hostname is an alias. Check that the target matches your provider's value exactly, and note the TTL before you change anything.
No CNAME record found
The name resolves directly with A or AAAA records, or does not exist. Run a DNS lookup to see which records it does have.
Invalid hostname
The input is not a valid hostname. Remove http://, paths and spaces, and enter only the name, such as www.example.com.
Setting up a new sending platform?
CNAMEs are only one part of the setup. Check SPF, DKIM and DMARC for your domain in one free test.