Skip to content

CNAME look up. Every hop in the alias chain.

Type a hostname. The tool follows every CNAME hop until it reaches a terminal A record, then flags loops and missing terminals. It reads the same answers as dig CNAME, run once per hop.

Use a sub-domain like www.* or app.*, apex domains usually have A/AAAA, not CNAME.

alias chain · live
Press Follow chain to query.
// no query yet
    Privacy: queries go to Cloudflare DoH; Digital Heroes does not log them.
    quick answer

    A CNAME look up finds the hostname an alias points to, then keeps asking until it reaches an A record. Use it when a custom domain on Shopify, Vercel or Netlify will not resolve, or before a DNS cutover. The fact that matters: resolvers refuse a chain that loops, and every extra hop adds a round trip.

    § · written guide

    How to use the CNAME look up tool

    This tool follows a hostname's CNAME records hop by hop until it reaches an A record, then checks the chain for loops, dead ends and too many hops. Each hop is a live query to Cloudflare's 1.1.1.1 resolver over HTTPS, the same answer dig CNAME gives you, repeated at every target. Use it when a custom domain on a host will not resolve, a certificate will not issue, or before a DNS cutover.

    Step by step

    1. Enter a hostname

      Type the name into the Hostname box, such as www.example.com. The box starts with www.github.com so you can see a working chain. Use a subdomain like www or app, because apex domains usually hold A records rather than a CNAME.

    2. Follow the chain

      Press Follow chain, or press Enter in the box. The status line reads Walking CNAME chain while the queries run, one hop at a time.

    3. Read the hop table

      The alias chain panel lists each hop with its number, record type, host and target. The tool asks for a CNAME at each name and moves to the target it gets back. When a name has no CNAME it asks for an A record there and stops.

    4. Check the three verdicts

      Under the table, three checks appear: No CNAME loop, Chain ends at terminal A record, and CNAME hops ≤ 2. The status line above the table sums them up, for example All 3 checks pass.

    5. Fix and run again

      If a check fails, change the record the table points to at your DNS host, then press Follow chain again. A changed record can take until its TTL runs out to show up at the resolver.

    Reading the result

    • Type CNAME means that host is an alias for the target on the same line. Type A is the end of the chain and the target is its IPv4 address. Type (none) with (unresolved) means the last name has no A record, which is a dead end.
    • A green tick is a pass, an amber triangle is a warning and a red cross is a failure. The hop count passes at 0 to 2 CNAME hops, warns at 3 or 4 and fails at 5 or more.
    • When the page was last checked, www.github.com showed one CNAME hop to github.com and then an A record, so all 3 checks passed. Live DNS can change, so your run may differ.
    • LOOP DETECTED means a hop pointed back at a name already in the chain, which resolvers refuse to follow. The tool also stops after 10 hops, and a chain cut off there fails the terminal A record check.
    • A name with no CNAME and an A record passes with 0 hops. A name with neither record gets a warning, not a failure, because there is no alias to blame.

    Tips and common mistakes

    • Enter only the hostname. Leave out https://, paths and ports, because the box sends exactly what you type to the resolver.
    • Only the IPv4 A record is checked at the end. A name that has only an AAAA record shows as a dead end here even though it works over IPv6.
    • If the status line shows DoH error, the query to the resolver failed. Check your connection or any network filter that blocks cloudflare-dns.com, then try again.
    • Three or more hops are usually a leftover from an earlier host. Point the record straight at the provider's target name instead of at another alias.

    Privacy and limits

    Each hop sends the hostname you typed, and every target it leads to, to Cloudflare's public DNS over HTTPS service at cloudflare-dns.com, as one CNAME query per hop and one A query at the end. Nothing else is sent, and the tool saves nothing. Results are only as fresh as Cloudflare's resolver cache.

    Back to the tool

    § 02 · the alias chain

    CNAME look up, hop by hop: what the chain shows.

    A CNAME record says one name is an alias for another. The tool asks the resolver for that alias, then asks again at the target, and repeats until a name answers with an A record. The result is a chain: the hops in order, the record type at each, and the terminal address.

    CNAME CNAME A www.example.com example.cdn-host.net edge-12.cdn-host.net 203.0.113.10 hop 1: alias hop 2: alias hop 3: canonical name terminal A record Pass: two CNAME hops, then an address Resolver: Cloudflare 1.1.1.1 over HTTPS. Address from the RFC 5737 documentation range.
    Two CNAME hops, then an A record. The tool prints the same chain as a table and marks this one as a pass, because it has two hops or fewer and ends in an address. The address 203.0.113.10 sits in the RFC 5737 documentation range, TEST-NET-3.

    Resolvers follow the alias for you, so a browser never sees the chain. A chain still costs time: each hop is one more question before the address comes back, which is why RFC 1034 tells zone owners to point records at the canonical name rather than at another alias. The checker makes that hidden work visible.

    Three things fail the check. A loop, where a hop points back at an earlier name, which makes a resolver give up and return an error. A dead end, where the last name has no A record. And depth: this tool passes two hops or fewer, warns at three or four and fails at five, stricter than any resolver on purpose.

    The thresholds come from the custom domain setups we ship. Shopify, Vercel, Netlify and Cloudflare Pages each ask for one CNAME, and Vercel's domain guide pairs that CNAME with a plain A record at the apex. In our builds one hop is the norm and two is the most a provider needs, so a third hop is almost always a leftover from an earlier host.

    § 03 · symptoms

    When to run a CNAME checker.

    Run the checker whenever a hostname should point at a provider and does not: a custom domain that shows the provider's default page, a certificate that will not issue, or a www that stopped answering after a migration. Each of those is a chain problem before it is a hosting problem.

    Five symptoms, what the chain usually shows, and the next check to run
    SymptomWhat the chain usually showsNext check
    Custom domain shows the host's default pageThe CNAME still points at the old provider, or the target has no A recordFix the record, then confirm it has spread with the DNS propagation checker
    SSL certificate will not issueThe provider validates the name and reaches the wrong targetRerun once the chain ends at the provider, then the HTTPS and SSL checker
    Mail stops after a DNS changeA name that carries MX or TXT was turned into a CNAME, which RFC 1034 does not allow beside other recordsMove the alias to a sub-domain, then read the MX records
    Root domain refuses a CNAMEThe apex holds SOA and NS records, so it cannot be an aliasUse ALIAS or ANAME, Cloudflare flattening, or redirect the apex to www and verify it with the redirect chain checker
    Store launch or platform cutoverThe old CNAME stays cached until its TTL runs outLower the TTL ahead of the flip; our Shopify store setup and Shopify migration pages give the sequence

    For mail names the rule cuts both ways: a DKIM selector such as selector1._domainkey can be a CNAME to your provider, because nothing else lives at that name, but the apex that carries MX cannot. The SPF, DKIM and DMARC checker reads those records after you change them.

    § 04 · the output

    Reading the result against dig.

    The table has four columns: hop, type, host and target. Type is CNAME for an alias, A for the terminal address, and (none) when the last name has no address record at all. The checks under the table repeat the verdict in plain words so you can paste it into a ticket.

    Under the hood each hop is one GET to Cloudflare's 1.1.1.1 DNS over HTTPS JSON API, asking for type CNAME and reading record type 5 from the answer, then type A, record type 1, at the end. The numbers are the RFC 1035 type codes, so the same chain appears in a terminal with dig +short CNAME www.github.com, repeated once per target. Checked on 6 October 2026, it answered with one hop to github.com.

    Two differences from dig matter. The tool lowercases the hostname and strips the trailing dot from each target, so copy the host column rather than retyping it. And it queries only the IPv4 address at the end, so a name with an AAAA record but no A record reads as a dead end here even though it resolves over IPv6.

    For the full record set at one name, including AAAA, use the DNS lookup instead, and the IP lookup to see who owns the terminal address.

    § 05 · questions

    Questions about CNAME records.

    What is a CNAME look up?

    A CNAME look up asks DNS whether a hostname is an alias and, if so, which name it points to. This tool repeats that question at each target until a name returns an A record, then prints the chain as hops. It is the quickest way to see where www or a custom domain really lands.

    Is a CNAME lookup the same as a DNS lookup?

    No. A DNS lookup asks for every record type at one name: A, AAAA, MX, TXT, NS and so on, which our DNS lookup tool returns in one sweep. A CNAME lookup asks only whether the name is an alias, then follows the alias to its end. Use the full lookup for an inventory and this tool for a chain.

    Why does my CNAME chain fail the check?

    One of three reasons. The chain loops back to a name it already visited, which resolvers refuse. The last name has no A record, so the alias leads nowhere. Or the chain is five hops or longer, which this tool fails because the providers we deploy on need at most two. Fix the record the table names, then rerun.

    Why can the root domain not be a CNAME?

    RFC 1034 says a name with a CNAME can hold no other record, and the root of a zone must hold SOA and NS records, so an apex CNAME breaks the zone itself. Providers work around it with ALIAS or ANAME records, Cloudflare flattens the CNAME at the edge, or you redirect the apex to www and alias www instead.

    Last reviewed .

    § 07 · need it fixed, not just found

    DNS cutover on a launch? Book a call.

    A store launch or a platform move is a sequence: lower the TTL, stage the new host, flip the alias, reissue the certificate, recheck mail. A 30 minute call puts the steps in order, and a written scope follows within 48 hours.

    Published · Last updated .

    Priya sent you a message Online now

    Talk to a Developer Now

    Share your name and email to reply.

    Reply