NetworkAI
  • MonitoringCertificate & Domain MonitorDaily checks of TLS certificates, domain registration and DNS, with alerts when a renewal fails.
  • AssessmentSecurity AssessmentA passive security report for a domain you own: TLS, DNS, email authentication, headers and registration.
Free tools
Start hereDomain Health CheckSSL, DNS, email authentication, security headers and expiry in one scored report.Run a health check →
Domain
  • Bulk Domain Expiry Checker
  • RDAP Domain Lookup
  • WHOIS Lookup
SSL / TLS
  • SSL Certificate Checker
  • Bulk SSL Expiry Checker
  • 47-Day Certificate Lifetime Calculator
  • Certificate Lifetime Readiness
  • Post-Quantum TLS Checker
DNS
  • DNS Lookup
  • MX Lookup
  • CAA Record Checker
  • DNS Propagation Checker
  • TXT Record Lookup
  • NS Lookup
  • CNAME Lookup
  • Reverse DNS Lookup
Email authentication
  • SPF Record Checker
  • SPF Record Generator
  • DMARC Record Checker
  • DMARC Record Generator
  • DKIM Record Checker
  • Email Sender Requirements Checker
Website security
  • Security Headers Checker
Network & IP
  • What Is My IP Address
  • Subnet Calculator
All free tools →
PricingDocsGuides
Log inStart free
  • MonitoringCertificate & Domain MonitorDaily checks of TLS certificates, domain registration and DNS, with alerts when a renewal fails.
  • AssessmentSecurity AssessmentA passive security report for a domain you own: TLS, DNS, email authentication, headers and registration.
Free tools
Start hereDomain Health Check
Domain
  • Bulk Domain Expiry Checker
  • RDAP Domain Lookup
  • WHOIS Lookup
SSL / TLS
  • SSL Certificate Checker
  • Bulk SSL Expiry Checker
  • 47-Day Certificate Lifetime Calculator
  • Certificate Lifetime Readiness
  • Post-Quantum TLS Checker
DNS
  • DNS Lookup
  • MX Lookup
  • CAA Record Checker
  • DNS Propagation Checker
  • TXT Record Lookup
  • NS Lookup
  • CNAME Lookup
  • Reverse DNS Lookup
Email authentication
  • SPF Record Checker
  • SPF Record Generator
  • DMARC Record Checker
  • DMARC Record Generator
  • DKIM Record Checker
  • Email Sender Requirements Checker
Website security
  • Security Headers Checker
Network & IP
  • What Is My IP Address
  • Subnet Calculator
All free tools →
PricingDocsGuides
Start freeLog in
  1. Home
  2. /Free tools
  3. /DNS
  4. /CNAME Lookup
Free tool · No signup

CNAME Lookup

Enter a hostname to follow its CNAME records hop by hop to the final name and the IP addresses it resolves to, and to spot loops, CNAMEs at the bare domain and targets that no longer exist.

Results come from public resolvers (Cloudflare 1.1.1.1 and Google 8.8.8.8) and are cached for up to a minute. A mail server may see something different if a record changed recently — changes take up to the record's TTL to propagate.

Get this as an API

Early access · not available yet

We are building an API that returns these checks as JSON. It does not exist yet — the request and response below show the planned shape and may change. Join the waitlist and we will email you once, when early access opens.

Planned request
curl "https://networkaitools.com/api/v1/dns?domain=www.example.com&types=CNAME" \
  -H "Authorization: Bearer nk_live_..."
Planned response
{
  "status": "ok",
  "records": {
    "A": ["93.184.215.14"],
    "MX": [{ "priority": 10, "exchange": "mail.example.com" }],
    "CAA": [{ "flags": 0, "tag": "issue", "value": "letsencrypt.org" }]
  },
  "resolver": "1.1.1.1"
}

Used only to tell you when the API opens. No newsletter, and you confirm by email first.

What is a CNAME record?

A CNAME (canonical name) record makes one hostname an alias of another. When a resolver meets a CNAME it restarts the lookup at the target name, and the alias then answers with whatever records the target has. It is how custom domains point at CDNs, SaaS apps and load balancers without hard-coding their IP addresses.

What the CNAME check shows

  • Each hop of the chain, from the name you entered to the final canonical name.
  • The IPv4 and IPv6 addresses of the final name.
  • A warning if the chain loops, is very long, ends at a name with no address, or starts at the bare domain.
A two-hop chain
www.example.com.        CNAME  example.cdn-provider.net.
example.cdn-provider.net. CNAME  edge-12.cdn-provider.net.
edge-12.cdn-provider.net. A      192.0.2.44

CNAME rules that cause problems

RuleWhat breaks
A name with a CNAME can have no other recordsAdding MX or TXT next to a CNAME is invalid; resolvers behave unpredictably.
No CNAME at the zone apex (bare domain)The apex must hold SOA and NS records, so a CNAME there conflicts with them. Use an A record or your DNS host's ALIAS / CNAME flattening.
MX and NS records must not point to a CNAMEMail servers and resolvers may refuse to follow the alias.
Keep chains shortEach hop is another lookup; resolvers stop after about 8–16 hops.
Cloudflare (CNAME flattening), Route 53 (alias records), DNSimple and others offer apex aliases. They resolve the target themselves and publish plain A/AAAA records, which is valid.

Dangling CNAMEs and subdomain takeover

A dangling CNAME points at a name that no longer exists — typically a cloud resource that was deleted, such as an S3 bucket, an Azure app, a Heroku app or a GitHub Pages site, while the DNS record stayed. If the cloud provider lets anyone claim that name, an attacker can create it and serve their own content on your subdomain, with a valid certificate. This is called subdomain takeover.

  • Remove the CNAME the moment you delete the resource it points at.
  • Review CNAMEs to cloud services every quarter; this tool flags targets without an address.
  • Not every dangling CNAME is exploitable, but none of them serves a purpose — delete them.

Setting up a CNAME for a custom domain

Most SaaS apps ask for a CNAME from a subdomain to a name they give you:

Typical custom-domain records
shop.example.com.    CNAME  shops.myshopify.com.
help.example.com.    CNAME  example.zendesk.com.
www.example.com.     CNAME  cname.vercel-dns.com.

After adding it, the service usually issues a certificate for your name, which only works once the CNAME resolves. Check it here, then watch it reach resolvers worldwide with the DNS propagation checker. Confirm the certificate with the SSL checker.

Command line
$ dig www.example.com CNAME +short
$ dig www.example.com +trace

For every record type at once, use the DNS lookup; to see where a zone is hosted, the NS lookup.

CNAME vs ALIAS, ANAME and redirects

A CNAME only changes where DNS looks; it does not change the URL in the browser or redirect anyone. If example.com should send visitors to www.example.com, you need an HTTP redirect on the web server or at your CDN, in addition to DNS. ALIAS and ANAME records are provider features that behave like a CNAME at the apex: the provider resolves the target and answers with its addresses, so other records such as MX can live next to it.

Certificates follow the name in the browser, not the CNAME target: a certificate for www.example.com must list that name even though the content comes from the CDN's hostname. Most CDNs issue it automatically once the CNAME resolves.

Frequently asked questions

What is the difference between a CNAME and an A record?

+

An A record maps a name directly to an IPv4 address. A CNAME maps a name to another name, whose records are then used. Use a CNAME when the target's addresses are managed by someone else, such as a CDN, and an A record when you control the IP.

Can I put a CNAME on my root domain?

+

Not as a real CNAME: the bare domain must hold SOA and NS records, and a CNAME cannot coexist with other records. Use your DNS host's ALIAS, ANAME or CNAME-flattening feature, which publishes the target's A and AAAA records at the apex instead.

How many CNAMEs can be chained?

+

There is no fixed limit in the standard, but resolvers give up after roughly 8 to 16 hops, and each hop adds a lookup. Keep chains to two or three. The tool warns above three hops and stops at ten.

What is a dangling CNAME?

+

A CNAME whose target no longer exists, usually a deleted cloud resource. Besides breaking the site, it can allow subdomain takeover if someone else can register the target name. Remove CNAMEs as soon as the service they point to is gone.

Can a CNAME have MX or TXT records next to it?

+

No. A name that has a CNAME cannot have any other record type, so put MX and TXT records on the target name or on a different name. DNS panels often refuse the combination; when they do not, resolvers behave inconsistently.

Related tools

All DNS tools →
  • DNS Lookup

    A, AAAA, CNAME, MX, NS, TXT, CAA and SOA records in one view.

  • DNS Propagation Checker

    See whether 20 public DNS resolvers return your new A, MX, TXT or CNAME record yet.

  • NS Lookup

    A domain's name servers, their IP addresses, and whether each one answers with the same zone.

  • SSL Certificate Checker

    Expiry, chain completeness, hostname match, revocation status and key strength.

Written and maintained by the NetworkAI team, built by a working network security engineer · Last updated November 2, 2026

NetworkAI

Renewal-failure alerts for TLS certificates and domain registrations.

Product

  • Certificate monitor
  • Pricing
  • Log in
  • Start free

Free tools

  • Domain Health Check
  • SSL Certificate Checker
  • SPF Record Checker
  • DMARC Record Checker
  • Security Headers Checker
  • DNS Lookup
  • All free tools →

Tool categories

  • Domain
  • SSL / TLS
  • DNS
  • Email authentication
  • Website security
  • Network & IP

Resources

  • Documentation
  • Slack & webhook alerts
  • Guides
  • All comparisons
  • NetworkAI vs UptimeRobot
© 2026 NetworkAI · Built by a network security engineer
PrivacyTerms
EspañolالعربيةDeutsch