CNAME Lookup
Lookup CNAME records and verify alias target mapping for domains and subdomains. Run fast checks, interpret results, and use related tools for validation.
Use CNAME Lookup in 4 Steps
What is CNAME Lookup?
A CNAME (Canonical Name) record creates an alias from one hostname to another. The aliased hostname then resolves to an A or AAAA record. CNAMEs are widely used for www subdomains, CDN integration (pointing to Cloudflare, Fastly, or CloudFront hostnames), and third-party service setups.
When a resolver encounters a CNAME, it follows the chain until it reaches an A or AAAA record. This indirection is useful for CDN setups — your www CNAME points to cdn.provider.com, and the CDN controls the final IP. However, CNAME chains add resolver round-trips and long chains can slow resolution. RFC 1034 prohibits CNAME at the zone apex.
Quick Interpretation Table
Use this reference to diagnose common outcomes when running CNAME Lookup.
| Observed Result | Likely Cause | Next Step |
|---|---|---|
| CNAME loop detected | Two records alias each other with no terminal A record | Break the loop; one hostname must terminate at an A or AAAA record |
| CNAME target is NXDOMAIN | The alias points to a non-existent hostname | Update CNAME target to the correct hostname, or create the missing A record |
| CNAME at apex (example.com) | RFC violation — will break MX, TXT, and NS co-existence | Replace with an A record, or use your DNS provider's ALIAS/ANAME record type |
CLI Examples
Run these commands directly from a terminal to verify CNAME records without relying on a browser-based tool.
dig CNAME www.example.comnslookup -type=CNAME www.example.comdig +trace www.example.comdig A www.example.comTroubleshooting Workflow
- Run this record check first for a scoped signal on the target hostname.
- Validate nameserver authority and SOA context if results are unexpected.
- Use propagation checks when different regions return different values.
- Re-run after applying fixes and compare values against your expected configuration.
Frequently Asked Questions
Get guides like this by email
DNS, email auth, and security playbooks delivered when they publish. No spam.