CNAME: how to point a subdomain to a tool, step by step
What a CNAME record is, when to use it, how to create one at your DNS provider and why it sometimes takes a while to work.

Many tools ask you to point a subdomain of yours to them, such as pages.yourdomain.com. The standard way to do it is with a CNAME record. This guide explains what it does and how to create one without breaking anything.
What a CNAME is
A CNAME (canonical name) is an alias: it says that one name is another name. When someone opens pages.yourdomain.com, DNS answers "look up the address of target.tool.com". The upside is that if the tool moves to another server, you don’t have to change anything.
Step by step
- Open the panel where your domain’s DNS is managed (registrar, Cloudflare or hosting).
- Go to the DNS zone or DNS records area and click add record.
- Type:
CNAME. Name: only the subdomain part (for example,pages). - Target: the address the tool gave you, exactly as it is.
- Save and go back to the tool to verify.
pages.yourdomain.com. CNAME target.tool.com.
Why it sometimes takes a while
DNS servers cache answers for as long as the record’s TTL says. If a record with the same name already existed, part of the internet keeps seeing the old one until the cache expires. For planned changes, lower the TTL to a few minutes a day in advance.
Common mistakes
- Full name in the name field: some panels append the domain themselves and the record becomes
pages.yourdomain.com.yourdomain.com. - A CNAME alongside another record with the same name: the standard doesn’t allow it. Delete the old A record first.
- Mistyped target: copy and paste, don’t type.
How to check
In a terminal, nslookup -type=cname pages.yourdomain.com shows where the name points. There are also DNS lookup sites that show the answer from several countries. With the CNAME right, the next step is usually the certificate: see how automatic SSL works.
Frequently asked questions
Can I use a CNAME on the root domain (without www)?
Under the DNS standard, no: the root domain already has other mandatory records. Some providers offer an equivalent feature (called ALIAS, ANAME or CNAME flattening). The simplest route is to use a subdomain.
How long does a CNAME take to work?
Usually minutes. It can take a few hours if an old record with a high TTL was cached.
Does a CNAME change my email?
No, as long as you create the CNAME only on the subdomain. The MX records of the main domain stay the same.


