CNAME Record Lookup & Checker: Trace Alias Chains and Targets

Query live Domain Name System (DNS) Canonical Name (CNAME) records across three public resolvers, trace full multi-hop alias chains to their final IPv4, IPv6, or TXT records, verify vendor targets, and catch dangling subdomain takeover risks.

Cloudflare · Google · AliDNS via DoH
Try:

Observed live example for www.apple.com (3-hop CNAME chain terminating on Akamai Edge dual-stack IPv4/IPv6). Enter any subdomain above for live 3-resolver chain tracing.

Multi-hop DNS CNAME alias chain showing hop number, alias name, canonical target, detected provider, and TTL
Hop Alias Name Points To (Canonical Target) Provider / Role TTL
Hop 1 www.apple.com www-apple-com.v.aaplimg.com Apple Edge DNS 300s
Hop 2 www-apple-com.v.aaplimg.com www.apple.com.edgekey.net Akamai EdgeKey 285s
Hop 3 www.apple.com.edgekey.net e6858.dsce9.akamaiedge.net Akamai CDN (Terminal A + AAAA) 285s
100% Free · No Sign Up 3-Resolver Chain + Target Verifier 🛡️ Browser DoH · Nothing Stored by Us
Takeover Audit + Builder + CSV

What your CNAME record lookup result means

A Type 5 CNAME lookup tells you whether a hostname aliases another domain, how many hops recursive resolvers follow to reach the final canonical target, and whether that target resolves cleanly or sits dangling on an unclaimed cloud endpoint. The table below explains all 6 states reported by this lookup:

Six DNS CNAME record lookup states, observed resolver responses, and operational actions
Lookup State Observed DNS Chain What It Means Recommended Action
Resolved (A / AAAA) 1 or more CNAME hops terminating on live IPv4 or IPv6 records Healthy web, Content Delivery Network (CDN), or Software as a Service (SaaS) alias. Keep chains to 1 or 2 hops where possible and verify expected vendor targets match.
Resolved (TXT target) CNAME target returns NOERROR with live TXT records and zero IPs Normal for delegated DomainKeys Identified Mail (DKIM) and ACME SSL validation CNAMEs. Keep proxy mode set to DNS Only (Grey Cloud) so verifiers read the raw target.
Dangling CNAME (NXDOMAIN) CNAME exists, but the canonical target returns NXDOMAIN Orphaned pointer to a deleted or typoed host; external cloud targets risk subdomain takeover. Delete the stale CNAME record immediately or fix the target spelling.
CNAME Loop Target chain circles back onto an earlier alias (A -> B -> A) Resolvers abort resolution and return failure to visitors. Point the subdomain directly to the final non-alias canonical hostname.
Direct A / AAAA (No CNAME) Zero Type 5 CNAME records, but live A/AAAA records answer Normal at a root zone apex, direct IP host, or proxied CDN subdomain with flattening. Disable CDN proxy temporarily if a third-party verifier requires a visible raw CNAME.
SERVFAIL or Timeout RCODE 2 or unreachable public resolvers Inconclusive DNS health issue (broken DNSSEC or unresponsive nameservers). Check nameserver delegation and DNSSEC signatures before altering CNAME rows.

Comparing the Hop 1 Propagation table beneath your results confirms whether Cloudflare, Google, and AliDNS already see the updated canonical target or are still serving a cached value until its Time to Live (TTL) expires.

How DNS resolvers trace multi-hop CNAME alias chains to terminal A, AAAA, or TXT records and detect dangling NXDOMAIN targets Four-box horizontal DNS CNAME resolution pipeline from left to right: Alias (www.example.com) points via Hop 1 CNAME to cdn.example.net, which chains via Hop 2 CNAME to edge.provider.net, ending at Terminal Records (IPv4 A, IPv6 AAAA, or delegated TXT/DKIM). Below the chain, three status banners contrast Healthy Resolution (NOERROR + terminal record), Dangling CNAME Takeover Risk (target returns NXDOMAIN), and Apex Constraint (no Type 5 CNAME at root @; use A/AAAA or CNAME flattening). Alias Queried www.example.com No A/TXT allowed here Hop 1 (Type 5 CNAME) cdn.example.net Resolver restarts lookup Hop 2 (Canonical Target) edge.provider.net Final non-alias owner Terminal Records A (IPv4) / AAAA (IPv6) or TXT (DKIM / ACME) Healthy Chain (1-2 Hops) Target resolves to A/AAAA or TXT Browser URL bar stays unchanged Dangling CNAME (NXDOMAIN) Target resource deleted in cloud Subdomain takeover exposure Apex (@) & Proxy Flattening No Type 5 CNAME at root apex DNS host synthesizes A / AAAA Resolvers follow Type 5 pointers until hitting a non-CNAME terminal owner, an NXDOMAIN dead end, or a loop
Multi-hop CNAME resolution from alias subdomain through intermediate CDN pointers to terminal A, AAAA, or TXT records, contrasted with dangling NXDOMAIN takeover risk

How to add or fix a CNAME record without breaking DNS

Publishing a clean CNAME requires matching the exact subdomain label, avoiding apex and sibling-record conflicts, and verifying the target before switching live traffic. Follow these 4 steps to create or repair a CNAME safely:

  1. Confirm the hostname is a subdomain with zero conflicting records: Delete any existing A, AAAA, or TXT record on that exact subdomain label before creating the CNAME, and never place a standard CNAME at the root apex (@).
  2. Enter the short subdomain label and exact Fully Qualified Domain Name (FQDN) target: Place only the relative label (such as www or shop) in the Host field and paste the exact canonical target (such as shops.myshopify.com) in the Target field without introducing double-domain suffixes.
  3. Choose DNS Only (Grey Cloud) for email and SSL verification CNAMEs: Keep web-facing CDN aliases proxied only when your platform requires it, while keeping delegated DKIM (_domainkey), Autodiscover, and ACME validation (_acme-challenge) CNAMEs strictly unproxied.
  4. Verify the live chain and terminal records across all three resolvers: Paste the vendor's expected hostname into the Verify expected target field above to confirm exact match, healthy terminal IPv4/IPv6 or TXT records, and zero NXDOMAIN dead ends.

Use the CNAME Record Builder tab above to catch apex conflicts and generate copy-ready zone lines before editing your DNS control panel.

Verify CNAME chains from the command line

Inspect immediate CNAME targets or trace multi-hop chains down to final IPv4 and TXT answers locally from Linux, macOS, or Windows terminals:

# 1. Query only the immediate CNAME target (Linux / macOS):
dig www.apple.com CNAME +short

# 2. Trace the full multi-hop CNAME chain down to final IPv4 (A) records:
dig www.apple.com A +noall +answer

# 3. Inspect a delegated DKIM or ACME TXT CNAME chain:
dig selector1._domainkey.github.com TXT +noall +answer

# 4. Windows Command Prompt & PowerShell:
nslookup -type=cname www.github.com 1.1.1.1
Resolve-DnsName -Name www.github.com -Type CNAME -Server 1.1.1.1

CNAME protocol rules, apex constraints, and cloud target patterns

Core DNS CNAME rules derive from two internet standards: the Domain Name System concepts specification (IETF RFC 1034) states that no other data may coexist with a CNAME at the same owner name. The DNS clarifications standard (IETF RFC 2181) enforces that single-owner rule and forbids MX and NS records from pointing to CNAME aliases. The table below summarizes the 6 protocol and operational rules that drive real-world CNAME troubleshooting:

Six DNS CNAME protocol constraints and cloud operational behaviors with practical solutions
Rule / Pattern Allowed? Technical Reason Correct Solution
CNAME at zone apex (@) Prohibited Root zones require mandatory SOA and NS records that cannot share a name with a CNAME. Use provider CNAME flattening or an ALIAS record to synthesize apex IPs.
CNAME + TXT or A on same label Prohibited A CNAME aliases every record type at that label to the target (only DNSSEC signatures coexist). Move verification TXT strings to the apex or switch the label to direct A/AAAA.
MX or NS pointing to CNAME Prohibited Mail exchangers and authoritative nameservers must reference canonical hostnames with direct IPs. Point MX and NS targets directly to hostnames holding A/AAAA records.
Multi-hop CNAME chains Allowed (keep short) Resolvers chase chains hop by hop, adding uncached latency and extra points of failure. Point aliases directly to the final vendor hostname unless a CDN manages intermediate hops.
Delegated TXT / DKIM CNAMEs Standard Email platforms and SSL issuers rotate keys cleanly at their own target hostnames. Verify terminal TXT answers and keep CDN proxy mode disabled on the label.
Cloud CDN orange-cloud proxy Flattened at edge Reverse proxies replace the visible CNAME with synthetic edge A/AAAA records. Expect direct edge IPs in lookups; switch to DNS Only only when external tools check raw CNAMEs.

For conceptual syntax comparisons between CNAME, A, ALIAS, and HTTP 301 redirects, review our CNAME record guide.

Verified live CNAME lookup examples (verified December 1, 2026)

Four public hostnames were queried across Cloudflare (1.1.1.1), Google (8.8.8.8), and AliDNS (223.5.5.5) on December 1, 2026 to verify single-hop resolution, multi-hop CDN chaining, delegated TXT/DKIM targets, and apex DNSSEC behavior:

Four live public DNS CNAME lookup fixtures verified across three resolvers on December 1, 2026
Queried Hostname Observed Chain Detected Provider / Role Terminal Resolution
www.github.com 1 hop -> github.com Direct apex alias Resolves cleanly to live IPv4 (A) records.
www.apple.com 3 hops -> aaplimg -> edgekey -> akamaiedge Apple Edge DNS -> Akamai CDN Resolves to dual-stack IPv4 (A) and IPv6 (AAAA) edge IPs.
selector1._domainkey.github.com 1 hop -> ...microsoft.onmicrosoft.com Microsoft 365 (Delegated DKIM) NOERROR with 1 live TXT DKIM key (zero A/AAAA expected).
example.com 0 CNAME hops (zone apex) Apex direct (DNSSEC AD=true) Resolves directly via A and AAAA records with no Type 5 CNAME.

Notice how inspecting terminal TXT records alongside A and AAAA prevents false alarms on delegated email-authentication CNAMEs like selector1._domainkey.github.com while still catching genuine NXDOMAIN dead ends.

What this CNAME record lookup does not check

Querying public DNS-over-HTTPS (DoH) directly from your browser keeps diagnostics fast and private while defining 4 explicit operational limits:

  • HTTP 301 or 302 web redirects: DNS lookups inspect Type 5 alias records only; checking browser URL redirects or TLS hostname matching requires an HTTP request against the web server.
  • Cloud dashboard claimability on resolving targets: This tool flags dangling NXDOMAIN targets and takeover-prone cloud suffixes, but cannot verify whether a resolving HTTP 404 error page on a shared cloud host is currently claimable inside that vendor's account portal.
  • Private split-horizon internal DNS views: Public DoH resolvers return only internet-visible authoritative records, not internal corporate Active Directory or Virtual Private Cloud (VPC) private zones.
  • Origin targets hidden behind reverse proxies: When a subdomain uses CDN orange-cloud proxying, public DNS returns synthetic edge IPs rather than the underlying CNAME configured inside your DNS panel.

Frequently asked questions

Why does a CNAME lookup return zero records on my root domain? +

Standard DNS forbids placing a CNAME record at the zone apex (example.com) because root domains must carry SOA and NS records, and a CNAME cannot coexist with any other record type on the same hostname. When a DNS provider supports apex aliasing via ALIAS, ANAME, or CNAME flattening, it resolves the target behind the scenes and returns synthesized A and AAAA records instead of a visible Type 5 CNAME.

Does a CNAME record redirect visitors or change the URL in the browser? +

No, a CNAME record works strictly at the DNS resolution layer to map an alias hostname to a canonical target hostname so the resolver can find its IP address. The browser address bar stays on the alias hostname the visitor typed; changing the visible URL or forwarding paths requires an HTTP 301 or 302 redirect on the web server or CDN.

Can a CNAME record coexist with a TXT, MX, or A record on the same subdomain? +

No, a hostname holding a CNAME record cannot hold any other non-DNSSEC record type (such as A, AAAA, MX, or TXT) at the same label. If a third-party service asks you to add a verification TXT record onto a subdomain that already uses a CNAME, either verify at the root domain instead or replace the CNAME with direct A and AAAA records.

Why did my CNAME disappear after I enabled Cloudflare proxy (Orange Cloud)? +

Enabling an orange-cloud reverse proxy on a subdomain intentionally hides the raw CNAME record from public resolvers and serves Cloudflare Anycast A and AAAA addresses instead so web traffic routes through the proxy edge. For non-HTTP records such as DKIM (_domainkey), Autodiscover, or ACME SSL verification (_acme-challenge), switch the record to DNS Only (Grey Cloud) so external verifiers see the exact CNAME target.

What is a dangling CNAME and why does it create a subdomain takeover risk? +

A dangling CNAME occurs when a subdomain still points to an external cloud resource (such as an AWS S3 bucket, Azure App Service, GitHub Pages site, or Heroku app) that has already been deleted, causing the target to return NXDOMAIN or an unclaimed host page. An attacker can register that abandoned cloud resource name and serve unauthorized content under your trusted subdomain. Always delete the DNS CNAME record before decommissioning the cloud resource.

Can a CNAME point to another CNAME across multiple hops? +

Yes, DNS resolvers follow chained CNAME records across multiple hops until they reach a terminal A, AAAA, or TXT record, which is common on enterprise CDNs like Akamai. Keeping chains to one or two hops reduces cold lookup latency and avoids silent outages if an intermediate alias is renamed or removed.

Next checks

  • Inspect the final IPv4 addresses resolved at the end of your CNAME chain with the A record lookup.
  • Verify dual-stack IPv6 destination addresses for CDN and apex targets in the AAAA record lookup.
  • Validate delegated _domainkey CNAME targets and RSA/Ed25519 signing keys using the DKIM record checker.
  • Check worldwide DNS cache convergence after updating a CNAME target with the DNS propagation checker.
  • Audit all record types (A, AAAA, CNAME, MX, NS, SOA, TXT, and CAA) together in the DNS record lookup.

Last verified: 2026-12-02