CNAME Lookup
Follow a CNAME chain hop by hop to its final address, with TTLs, and catch loops, dangling targets that risk subdomain takeover and CNAMEs at the apex. Free.
Updated 2026-10-20
Your query is sent only to the resolver shown; this site keeps no logs. Copy link to this result
Result
What is a CNAME lookup?
DNSVerdict's CNAME Lookup is a free tool that follows a hostname's CNAME records hop by hop, up to 16 hops, and shows each alias, its target, the TTLs and the final IP addresses. It detects loops, targets that no longer exist, which can enable subdomain takeover, and a CNAME at a zone apex. It runs in your browser over DNS-over-HTTPS.
What this checks
A CNAME record turns one name into an alias of another: the resolver answers for www.example.com with whatever records the target name has (RFC 1034 §3.6.2). Chains are normal. A site on a content delivery network often passes through two or three aliases before it reaches an address. DNSVerdict's CNAME lookup queries one hop at a time, so you see every alias, its target and its TTL, then the A and AAAA addresses at the end of the chain.
How to read the result. The chain table lists the hops in order; the table below summarises the start, the number of hops, the final name, its addresses and the effective TTL, which is the shortest TTL along the chain, because each link is cached separately. A name that is not a CNAME simply reports that it has its own records. A green result means the chain ends at a name with addresses. A red result means one of the failures below.
What is flagged. A loop, where an alias leads back to a name already passed, never resolves; RFC 1034 §3.6.2 says CNAME loops are errors. A chain longer than 16 hops is cut off, because resolvers also give up on long chains. A dangling CNAME points at a name that no longer exists (NXDOMAIN). Visitors get an error, and if the target is a name on a hosting, cloud or CDN service that anyone can register, an attacker may claim it and serve content on your subdomain, which is a subdomain takeover. Finally, a CNAME at a zone apex is invalid: a CNAME may not coexist with other data (RFC 1034 §3.6.2, RFC 2181 §10.1, RFC 1912 §2.4) and an apex must carry SOA and NS records. Use an A or AAAA record, or your DNS host's ALIAS, ANAME or CNAME-flattening feature, which answers with addresses.
Other places where an alias is not allowed. The target of an MX record and of an NS record must be a host name with address records, not an alias (RFC 2181 §10.3); see why an MX target must not be a CNAME. The same check in a terminal: dig www.example.com CNAME +short prints one hop, repeat it for each target, and dig +trace shows the delegation path. On Windows, nslookup -type=CNAME www.example.com does the first hop.
Common mistakes. Deleting a service, such as a hosted site, a storage bucket or a CDN endpoint, but leaving the CNAME that pointed to it; creating a CNAME for the bare domain; adding other records, for example TXT or MX, to a name that already has a CNAME; and chaining several aliases when one would do, which adds lookups and delays changes, since the TTLs of all links apply. Lower the TTL before you move a target, as described in lowering TTLs before a migration. The guides on dangling CNAMEs and subdomain takeover and CNAME at the root domain go deeper, the record types guide compares CNAME with A, MX and the others, and the DNS lookup shows any single record.
If it fails
- Loop: change one alias so that it ends at a name with address records. Check both zones if the aliases are managed by different providers.
- More than 16 hops: point your name directly at the final target instead of through the whole chain.
- Dangling target (NXDOMAIN): recreate the target at the service, or delete the CNAME. Do this first for any hosted-service name you no longer use. See dangling CNAMEs.
- CNAME at the apex: replace it with A/AAAA records or an ALIAS/ANAME record from your DNS host. See CNAME at the root domain.
- The chain ends without addresses: add an A or AAAA record at the final name, or point the alias elsewhere.
- SERVFAIL or timeout: the tool shows the failure and concludes nothing about the chain. Run the check again.
FAQ
What is a CNAME record?
A CNAME (canonical name) record makes one name an alias of another. When a resolver asks for the alias, it is told to look up the target instead and returns the target's records. The alias can hold no other records (RFC 1034 §3.6.2). Typical use: pointing www.example.com at a hosting or CDN provider's name.
Why can I not put a CNAME on my bare domain?
A CNAME may not coexist with any other record at the same name (RFC 1034 §3.6.2, RFC 2181 §10.1), and the bare domain, the zone apex, must hold SOA and NS records. A CNAME there would break the zone. Use A and AAAA records, or the ALIAS, ANAME or CNAME-flattening feature many DNS hosts offer.
What is a dangling CNAME?
A dangling CNAME points at a name that no longer exists, usually because the service behind it was cancelled. Visitors see an error, and if the target is a name that anyone can register at a hosting or cloud provider, an attacker may claim it and serve content on your subdomain. Delete the CNAME or recreate the target.
How long can a CNAME chain be?
There is no fixed protocol limit, but every hop costs a lookup and resolvers stop after a limited number of aliases, so long chains fail on some of them. This tool stops after 16 hops. Real chains rarely exceed three or four, such as a website, a CDN alias and the CDN's edge name.