New: mailX now works inside ChatGPT. Try it →
Free CNAME Checker

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 it works

How to check a CNAME record

Five steps to confirm that an alias is live and correct.

01

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.

02

Run the lookup

mailX queries DNS and returns the CNAME target and its TTL, or tells you that no CNAME exists for that name.

03

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.

04

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.

05

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:

www.example.com. 3600 IN CNAME example.netlify.app.

How it resolves:

www.example.com → CNAME → example.netlify.app → A record → IP address

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.

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):

dig CNAME www.example.com +short

Windows (Command Prompt):

nslookup -type=CNAME www.example.com

Windows (PowerShell):

Resolve-DnsName www.example.com -Type CNAME

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.

CNAME Lookup FAQ

CNAME basics

What is a CNAME lookup?
A CNAME lookup queries DNS for the Canonical Name record of a hostname. It shows whether the hostname is an alias and which hostname it points to. mailX also returns the TTL, so you know how long resolvers can cache the answer.
What is the difference between a CNAME and an A record?
An A record maps a hostname directly to an IPv4 address. A CNAME maps a hostname to another hostname, which is then resolved to an IP address. Use a CNAME when a third party, such as a CDN or a SaaS platform, controls the final address.
Can a root domain have a CNAME record?
No. The root of a zone (example.com) must hold SOA and NS records, and a CNAME cannot coexist with other records on the same name. Use your DNS provider's ALIAS, ANAME or CNAME flattening feature if the root needs to point to a hostname.

Checking CNAME records

How do I check if a CNAME record is working?
Enter the full hostname in the mailX CNAME lookup, such as www.example.com. If the result shows the target your provider gave you, the record is live. If no CNAME comes back, check the record name in your DNS host, then wait for the TTL and look it up again.
Why does my CNAME lookup return no record?
The most common causes are looking up the root domain instead of the subdomain, a record name doubled by the DNS host (www.example.com.example.com), a record that is not saved yet, or a proxied record that public DNS answers with IP addresses (fine for websites, but email CNAMEs must be set to DNS only).
How long does a CNAME change take to show up?
A new record is usually visible within minutes. A changed record can show its old value until the previous TTL expires, from a few minutes to 24 hours or more depending on what was set. Lower the TTL before a planned change.

CNAMEs and email

Why do email platforms ask me to add CNAME records?
Platforms such as SendGrid, Mailchimp and HubSpot use CNAMEs to brand tracking links, set a custom return path or delegate DKIM keys. The CNAME lets the platform manage the record behind it, such as rotating DKIM keys, without asking you to edit DNS again.
How do I check a DKIM key published through a CNAME?
Microsoft 365 publishes DKIM through two CNAMEs, selector1._domainkey and selector2._domainkey. Use the mailX DKIM checker with the selector: it follows the CNAME and validates the key it points to.

Errors and fixes

Can a CNAME point to an IP address?
No. The target of a CNAME must be a hostname. If you need to point a name to an IP address, use an A record for IPv4 or an AAAA record for IPv6.
Can I add a TXT record on a name that has a CNAME?
No. A name with a CNAME cannot hold any other record. If a provider asks you for a TXT record on the same name, publish it on another name or replace the CNAME, depending on what the provider supports.