CNAME Record Lookup
Find canonical name (alias) records which map one domain name to another.
About CNAME Records
A Canonical Name (CNAME) record is a type of DNS record that maps an alias name to a true or canonical domain name. CNAME records are typically used to map a subdomain such as www or mail to the domain hosting that subdomain's content.
Important Note: The DNS protocol does not allow you to attach a CNAME record to the root (apex) of a domain (e.g., example.com). They can only be used on subdomains (e.g., www.example.com).
Our CNAME Record Lookup follows the alias chain for any hostname, showing each canonical name in the chain and the address it finally resolves to. Use it to verify CDN and SaaS integrations, detect long alias chains that slow resolution, and spot dangling records that expose you to subdomain takeover.
What is a CNAME Record?
For example, if www.example.com has a CNAME pointing at example.com, every lookup for www.example.com is answered with whatever example.com resolves to. Change the A record on example.com and the alias follows automatically — that indirection is the whole point.
CNAMEs are how most SaaS integrations work. Your shop.example.com points at a hosted platform, your CDN endpoint points at the provider network, and your email marketing tracking domain points at the vendor. One rule matters above all: a name with a CNAME record cannot have any other record type alongside it.
- Makes one hostname an alias for another hostname
- Resolution restarts at the target, following the chain
- Cannot coexist with any other record type at the same name
- Not permitted at the zone root in standard DNS
- The backbone of CDN and SaaS custom domain setups
Why CNAME Records Matter
Performance matters too. Every link in a CNAME chain is another round trip before the client gets an address, and chains of four or five hops are surprisingly common in accumulated legacy zones.
- A CNAME pointing at a deprovisioned service enables subdomain takeover
- Each additional alias hop adds latency to every first connection
- A CNAME at the zone root breaks MX, NS and SOA records for the domain
- Alias chains hide the true hosting provider from casual inspection
- Abandoned CNAMEs accumulate silently and are rarely audited
How This CNAME Record Lookup Works
- Validates the hostname input against format and SSRF safety checks
- Queries DNS for a CNAME record at the supplied name
- Follows each alias target, recording every hop in the chain
- Resolves the final canonical name to its A or AAAA address
- Flags chains that fail to terminate at a resolvable address
How to Use the CNAME Record Lookup
- Enter the hostname you want to check, such as www.example.com
- Run the lookup to query live DNS
- Review each hop in the alias chain that is returned
- Confirm the final target is the provider you expect
- If the chain does not resolve, the record is dangling and needs attention
Understanding Your CNAME Results
A CNAME lookup returns the alias chain and its final destination. Here is what each part means:
| Field / Value | Meaning |
|---|---|
Canonical name |
The target the alias points at. Resolution continues from here. This is the hostname whose records actually answer the query. |
Chain length |
How many aliases were followed before reaching an address. One or two hops is normal. Four or more adds measurable latency and should be flattened. |
Final address |
The IP address the chain ultimately resolves to. If this is empty, the chain is broken and the hostname does not work. |
TTL |
How long resolvers cache the alias, in seconds. The effective cache lifetime of a chain is governed by the shortest TTL in it. |
NXDOMAIN target |
The alias points at a name that does not exist. This is a dangling CNAME — a subdomain takeover risk that should be removed immediately. |
Common Problems & How to Fix Them
Best Practices
- Audit CNAME records regularly and delete any whose target no longer exists
- Never publish a CNAME at the zone root — use ALIAS or CNAME flattening instead
- Keep alias chains to one or two hops to minimise resolution latency
- Remove the DNS record before decommissioning the service it points at, not after
- Document which vendor each CNAME belongs to so ownership is clear
- Use a descriptive subdomain name that makes the integration obvious
- Lower the TTL before migrating a CNAME to a new provider
Security Recommendations
- Treat every dangling CNAME as an active vulnerability — subdomain takeover leads to cookie theft, phishing on your own domain, and fraudulent certificate issuance
- Always remove the DNS record first when decommissioning a hosted service
- Scan your full subdomain inventory for dangling aliases on a schedule, not just after incidents
- Be aware that a subdomain under your control can pass domain-validated certificate issuance, so takeover means an attacker can get a valid certificate for your name
- Restrict which subdomains carry authentication cookies so a takeover of one cannot compromise your main application
- Pair regular CNAME audits with CAA records limiting which certificate authorities may issue for your domain