Skip to content

Email DNS

Find the target of a CNAME record

Shows the canonical name an alias points to, so you can confirm a custom domain, a CDN hostname or a DKIM selector before you rely on it.

Try an example

How to read the result

The status says whether the name you typed is an alias. The rows show where it points.

Field What it means What to do with it
Status CNAME found, or No CNAME when the name holds other records or nothing. When DNS fails, the response code instead, such as NXDOMAIN. No CNAME is normal for root domains and for names with their own address records.
Points to The canonical name the alias leads to, lower case and without the trailing dot. Compare it, character by character, with the target your provider gave you.
Then to Further hops, shown when the resolver returns more of the chain. Each hop is another name someone else controls.
Name queried Shown when there is no CNAME: the exact name that was looked up. Check it is the name you meant, not the root domain.
TTL The seconds left before the resolver's cached copy of the alias expires. The longest wait for a change to reach this resolver.
Bulk CSV upload Locked. Bulk jobs run the API's lookups, such as domain, email, phone or IP, over a CSV. They do not run CNAME queries. Needs a free account.
API access Locked. Raw CNAME queries are not an API endpoint; the domain and email endpoints use the same resolvers for the records they check. Needs a free account, which includes 100 credits every month.

Checks are free: 10 a day without an account.

How the check works

  1. The tool reads exactly the name you typed. A URL works: it keeps the host. Names with underscores, such as DKIM selectors, are accepted. Nothing is shortened, so type the full host name, such as www.example.com.
  2. It asks for the CNAME record of that name over DNS over HTTPS, first from Cloudflare's resolver, 1.1.1.1, then from Google Public DNS if the first fails, times out or returns SERVFAIL or REFUSED.
  3. It lists the CNAME answers in order, then the TTL of the first.

When the question is the CNAME itself, a resolver returns the alias at that name and does not chase it further (RFC 1034 section 3.6.2). So the card usually shows one hop. To follow a chain, look up the target in turn. When the target holds address records instead of another alias, the chain ends there, and the DNS lookup shows its A and AAAA records.

The lookup cannot see aliases a DNS host resolves on its side before answering. A flattened apex or a provider ALIAS record returns plain addresses, and the card reads No CNAME.

The rules of CNAME records

Rule Source What it means in practice
No other data at the same name RFC 1034 section 3.6.2, clarified by RFC 2181 section 10.1 A name that is an alias cannot also hold A, MX, TXT or any other record. DNSSEC records are the only exception.
No CNAME at the zone apex Follows from the rule above: the apex must hold the zone's SOA and NS records example.com cannot be an alias. www.example.com can.
MX and NS targets must not be aliases RFC 2181 section 10.3 Point mail and delegation records at real host names.
Chains are allowed, loops are not RFC 1034; RFC 1912 section 2.4 warns against long chains Keep chains short. Two names pointing at each other never resolve.
The target is a name, not a URL RFC 1035 app.provider.example, never https://app.provider.example/.

Aliases at the apex: the options

Many services tell you to "point your domain" at a host name, which a root domain cannot do with a CNAME. There are four ways out:

Option How it works Trade-off
Use the www name Put the CNAME at www.example.com and make the apex redirect to it over HTTP. Needs a web server or a redirect service answering at the apex.
Provider flattening or ALIAS Your DNS host resolves the target and serves its addresses at the apex. Not standard. Only works while your DNS host offers it, and the answers can lag behind the target.
HTTPS record in alias mode RFC 9460 defines an HTTPS record whose alias mode is allowed at the apex. Only clients that query HTTPS records use it. Keep A and AAAA records for the others.
Plain A and AAAA records Copy the addresses the service publishes for apex use. You must update them yourself if the service changes addresses.

Checking a custom domain setup

Hosting platforms, help desks, status pages, shops and email providers ask you to add a CNAME to connect a name to their service. Before you click verify:

  1. Look up the exact name the service asked for, such as shop.example.com or status.example.com.
  2. Points to must equal the target the service gave you. A target ending with your own domain, such as shops.provider.example.example.com, means the dashboard completed a name without its final dot.
  3. If the status is No CNAME, the record is missing, the name has another record in the way, or the name you looked up is not the one you edited.
  4. If the status is NXDOMAIN, the name does not exist at all: check the zone you created the record in.
  5. Look up the target itself. If it returns NXDOMAIN, the service has not provisioned your resource yet, or it has been deleted.
Mistake What you see Fix
Trying to add the CNAME at the apex The DNS host refuses the record. Use the www name, or one of the apex options above.
A TXT token at the same name as the alias The DNS host refuses one of the two. Ask the service for another verification name, or verify before adding the alias.
A URL as the target The record is rejected, or points at a name that cannot exist. Enter only the host name.
An old A record left next to the new CNAME The DNS host refuses the CNAME. Delete the A record first.

What the target tells you

The Points to row is often enough to know who serves a name, because services give each customer a host name inside their own domain.

Target looks like What it usually means What to check next
A name inside your own domain, such as example.com or web.example.com An internal alias: the www name follows the apex or another server you run. The address records of the target, with the DNS lookup.
A customer-specific name at a hosting or CDN provider Your name is served by that provider's network. That the provider still has your site or app configured under that name.
A shared edge name at a provider, with no trace of your account The second hop of a chain, or a provider that routes all customers through one name. The first hop: it is the one tied to your account.
A name at a SaaS tool, such as a help desk or a status page The subdomain is that tool's custom domain feature. That the tool still lists your domain in its settings.
A name ending with your own domain twice A target typed without its final dot. Fix the record: it points nowhere.

Behind the last hop are addresses. To see which network they belong to, run the address through the ISP lookup or the IP lookup.

Plan a change to an alias

Moving a name from one service to another is a CNAME edit, and it can be done without downtime:

  1. Look up the name here and note the TTL. That is how long resolvers can keep the old target.
  2. A day before, lower the TTL at your DNS host to a few minutes, and wait for the old TTL to run out.
  3. Set up your name at the new service first, so it is ready to answer with a valid certificate.
  4. Change the target. Look the name up again until Points to shows the new value.
  5. Keep the old service running until the old TTL has passed for every cache.
  6. Raise the TTL again, then remove your name from the old service, last, so the alias never dangles.

Dangling CNAMEs and subdomain takeover

A CNAME keeps pointing at its target long after anyone remembers why. When the target is a resource on a third-party service, such as a cloud app, a storage bucket, a CDN endpoint or a hosted page, deleting the resource does not delete the record in your zone. The alias now dangles.

The risk comes from how such services name resources. If the deleted resource's name can be registered again by another customer, someone can claim it. Your subdomain then resolves to their resource, and they decide what it serves. Under your domain name, they can:

  • Host a convincing phishing page or malware download.
  • Read cookies your applications scope to the parent domain, because browsers send them to every subdomain.
  • Obtain a TLS certificate for the subdomain, since they can answer an HTTP-based domain validation.

How to find dangling aliases:

  1. Export your zone and list every CNAME.
  2. Look up each target. A target that returns NXDOMAIN is dangling.
  3. Open each name in a browser. A provider page saying the app, bucket or site does not exist is a warning sign, even when the target resolves.
  4. Remove the record, or recreate the resource you meant to keep.

The lasting fix is a habit: remove the DNS record first, then delete the resource. Review aliases whenever a project, a vendor or a team ends.

CNAMEs in email setups

CNAMEs show up in email configuration in two places. Many sending services ask you to publish DKIM selectors as CNAMEs pointing to keys they host, so they can rotate keys on their side. Type selector._domainkey.example.com here to confirm the alias, then check the key with the DKIM checker. Some services also use CNAMEs for tracking links or bounce domains. MX records, on the other hand, must point at real host names: the MX lookup shows them, and the TXT record lookup shows the SPF and DMARC records that go with them.

CNAME queries at scale

The API does not expose raw DNS queries, CNAME included. The domain intelligence API returns a domain's registration, A, AAAA, MX and NS records and its email setup for 1 credit, as described in the domain endpoint reference. To check many aliases from a script, a standard DNS client does the job:

bash
dig +short CNAME www.example.com

Run it over your zone export, then look up each target the same way to catch the ones that return nothing.

Same check through the API

One HTTPS call, one credit. The response below is the real schema returned by the API.

cURL
curl https://api.qelka.com/v1/email \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"email":"jane@exmaple.com","mode":"fast"}'
JavaScript
const response = await fetch("https://api.qelka.com/v1/email", {
  method: "POST",
  headers: {
    Authorization: "Bearer sk_test_your_key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    email: "jane@exmaple.com",
    mode: "fast",
  }),
});
const result = await response.json();
{
  "id": "lkp_01M84QZDZG5EJDJJE338NYR2ZA",
  "object": "email",
  "input": "jane@exmaple.com",
  "status": "unknown",
  "reason": "smtp_not_checked",
  "did_you_mean": "jane@example.com",
  "checks": {
    "syntax": true,
    "mx": true,
    "smtp": null,
    "catch_all": null,
    "disposable": false,
    "role": false,
    "free_provider": false
  },
  "domain": {
    "name": "exmaple.com",
    "spf": true,
    "dmarc": true
  },
  "score": 55,
  "credits_used": 1,
  "cached": false
}

Bulk and pricing

  • Upload a CSV of up to 2,000,000 rows from the dashboard or the API, pick the column, get the results back as a CSV.
  • Every check costs 1 credit, live phone lookups cost 3. Cached results are billed the same way; calls that fail upstream are not billed.
  • The free plan includes 100 credits every month. Paid plans start at $29 for 10,000 credits.

Frequently asked questions

What is a CNAME record?
A CNAME record makes one DNS name an alias of another, the canonical name (RFC 1034). When a resolver looks up www.example.com and finds a CNAME to example.net, it restarts the lookup with example.net and uses that name's records. Services use it so they can change their own addresses without asking every customer to update DNS.
Why can't I put a CNAME at my root domain?
Because a CNAME cannot share its name with any other record (RFC 1034 section 3.6.2), and the root of a zone, such as example.com, must carry the zone's SOA and NS records. A CNAME there would break that rule, so DNS hosts refuse it. Use the www name for the alias, or one of the apex alternatives described on this page.
What is CNAME flattening or an ALIAS record?
A feature some DNS hosts offer to work around the apex rule. You enter an alias target at example.com; the host resolves that target itself and answers with plain A and AAAA records. It is not a standard record type, its name and behavior differ between providers, and resolvers never see a CNAME. That is why this lookup shows No CNAME for a flattened name.
Can a CNAME point to another CNAME?
Yes, and resolvers follow the chain to the end. Services often do this: your www name points to a customer-specific name, which points to a shared edge name. RFC 1912 warns that long chains can trip up some resolvers, and every hop adds a lookup. Keep your own part of the chain to one alias, and never point two names at each other.
Can a name have both a CNAME and a TXT record?
No. RFC 1034 does not allow any other data next to a CNAME (RFC 2181 section 10.1 makes an exception only for DNSSEC records). If a service asks for a TXT token at a name that is already an alias, place the token at a different name if the service allows it, or remove the alias. DNS hosts generally refuse the combination.
Why does the lookup show No CNAME when my site works?
The name may have plain A or AAAA records instead of an alias, or your DNS host flattens the alias before answering. Both are normal. Root domains never have a CNAME. Check the address records with the DNS lookup to see where the name really points.
Can an MX record point to a CNAME?
It must not. RFC 2181 section 10.3 says the target of an MX or NS record must be a name with its own address records, not an alias. Some mail servers tolerate it, others do not, so a CNAME there can lose mail without warning. Point the MX at the mail server's real host name and check it with the MX lookup.
What is a dangling CNAME?
An alias that points to something that no longer exists: a deleted cloud app, a storage bucket, a closed account at a hosting service. The DNS record stays in your zone because nobody removed it. If the target name returns NXDOMAIN, or the service shows a page saying no such site exists, the CNAME is dangling and should be removed or repointed.
What is a subdomain takeover?
What can happen to a dangling CNAME. If the deleted resource's name can be claimed again on the same service, someone else can create it, and your subdomain then serves their content. They can host phishing pages under your name, and possibly read cookies scoped to your parent domain. The defense is to remove DNS records before deleting the resource they point to.
How long does a CNAME change take to work?
As long as the TTL of the old record. Resolvers that cached it keep using the old target until their copy expires, then fetch the new one. The TTL row shows how much time the resolver's copy has left. Lower the TTL a day ahead of a planned switch, and raise it again once the new target is confirmed.
Does a CNAME redirect visitors to another URL?
No. A CNAME works inside DNS: the browser still shows www.example.com, and only the address it connects to comes from the target. The server at the target must accept requests for your name and present a TLS certificate that covers it. An HTTP redirect, which changes the URL, is configured on a web server, not in DNS.
Should the CNAME target end with a dot?
In a zone file, yes: a name without the final dot is completed with the zone's name, so target.net written in the example.com zone becomes target.net.example.com. Most DNS dashboards add the dot themselves. If the card shows a target ending with your own domain, the dot was missing. The card displays targets without their final dot.
Why does my email provider ask for CNAME records for DKIM?
So it can rotate keys without your help. You publish selector._domainkey.example.com as a CNAME to a name the provider controls, and the provider publishes the actual key there. Type the selector name here to confirm the alias, then check the key itself with the DKIM checker.
How do I find every CNAME of my domain?
DNS cannot list the names in a zone: you query one name at a time. Export the zone from your DNS host, which is the complete list. Certificate Transparency logs (RFC 6962) also show the names in publicly trusted TLS certificates, which often reveals forgotten subdomains. Then look up each alias here.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time