DNS tools for developers, administrators & everyone who manages a domain 200+ DNS endpoints · No signup
CHECK DNS. SEE WHAT RESOLVES.

CNAME Record Lookup

Check any hostname's CNAME record online. Follow each alias hop to the final IP address, see TTLs, and spot loops, dangling targets and flattening.

Runs only after submission. Results are observations from this hosting server.

Ready when you are

Enter a hostname and run a check. Missing data, failed queries and unavailable capabilities stay clearly labelled.

Try the same question in a terminal

dig +noall +answer www.example.com CNAME
nslookup -type=CNAME www.example.com

What is a CNAME record?

A CNAME (canonical name) record makes one DNS name an alias of another. When a resolver looks up www.example.com and finds a CNAME pointing to example.net, it repeats the lookup for example.net and returns that name's addresses. The alias itself never holds an IP address. For a fuller explanation with examples, read what a CNAME record is and how it differs from an A record.

www.example.com.   3600   IN   CNAME   example.net.
FieldExampleMeaning
Namewww.example.com.The alias you create
TTL3600Seconds resolvers may cache the answer
Class / typeIN CNAMEInternet class, canonical-name record
Targetexample.net.The canonical name that is looked up next

CNAME record rules

  • A name that has a CNAME cannot have any other ordinary record, so no A, MX or TXT at the same name. DNSSEC signature records are the exception.
  • The zone apex, such as example.com, cannot normally use a CNAME because it must hold SOA and NS records.
  • The target must be a hostname, never an IP address or a URL.
  • MX and NS records should point to a hostname with its own A/AAAA records, not to a CNAME alias (RFC 2181).
  • Keep chains short: every hop is another lookup and another dependency.

Choosing between record types? Compare A records, CNAMEs and ALIAS records.

Follow a CNAME from alias to destination

A CNAME record makes one DNS name an alias of another. Enter the full hostname, such as www.example.com, rather than only the root domain. The lookup shows each observed target and TTL, then checks the last name for IPv4 and IPv6 addresses. A timeout leaves the rest of the chain unknown.

Illustrative example, not a live result. This tool stops at 12 alias hops. A resolver may hide a loop behind SERVFAIL, so a failed query is not proof of a loop.

Why a root CNAME is different

The zone apex, such as example.com, already needs SOA and NS data. An ordinary CNAME cannot share its owner name with that ordinary DNS data. DNS providers sometimes offer ALIAS, ANAME or CNAME flattening to support a hostname target at the apex while returning A or AAAA answers to visitors.

Cloudflare supports apex flattening. With flattening or proxying, a public lookup may show addresses instead of the CNAME you see in its control panel. That alone is not a broken record. Check the provider setting and query A and AAAA as well. See Cloudflare's flattening documentation.

CNAME vs A, and common CDN setups

An A record holds an IPv4 address; a CNAME holds a hostname. A hosted storefront or CDN may ask you to point shop.example.com to a hostname assigned to your account. Use that exact provider-supplied target. Never copy a target belonging to someone else's site. See the A record vs CNAME comparison.

Common CNAME errors

  • Entering a URL with https:// or a path instead of a DNS hostname.
  • Pointing the alias to itself, or building a two-name loop.
  • Publishing A, TXT or another CNAME at the same owner name.
  • Editing a zone that is not served by the delegated nameservers.
  • Removing the target service while leaving a stale alias behind.

After a change, an older target can remain cached for its previous TTL. Compare authoritative data before repeatedly editing the record. Use the DNS propagation troubleshooting guide when the chain still points at an old host.

Does this check change my DNS?

No. It reads published data or formats a record you choose. You must make any DNS change through your provider.

Does a timeout mean my domain is broken?

No. The resolver or this server's network may be unavailable. Retry and compare another source before changing configuration.

Why is my Cloudflare CNAME not visible?

Flattening or proxying may return A/AAAA addresses instead of the configured CNAME. Check the provider setting and the address answers.

Can a CNAME point to an IP address?

A CNAME target is a DNS name. Use A for IPv4 or AAAA for IPv6 when the provider gives you an address.