What is a CNAME record?
What a CNAME record does
CNAME stands for canonical name. Cloudflare's documentation puts it plainly: CNAME records map a domain name to another (canonical) domain name. When a browser looks up go.example.com and finds a CNAME to b1.lc, it continues the lookup at b1.lc and connects to the address it finds there. The alias does not need its own IP address, and if the target's address changes, the alias follows it.
A CNAME record has three parts you fill in: the name (go, which becomes go.example.com), the target (b1.lc) and a TTL, how long resolvers may cache the answer. Most DNS panels show it as one row.
The rules to know
The DNS standard, RFC 1034, says that if a CNAME is present at a name, no other data should be present there. Three practical rules follow:
- No CNAME at the root. example.com always has SOA and NS records, so it cannot also be a CNAME. Use a subdomain, an A record, or your provider's CNAME flattening.
- One CNAME per name, and nothing else beside it. A TXT or MX record at the same name conflicts with it. That is why ownership checks use a separate name, such as _bn-verify.go.example.com.
- A CNAME points to a name, never to an IP address or a URL. Write b1.lc, not https://b1.lc/ and not an IP.
Example records for a short link domain
Typical records for a short link domain look like this:
- go.example.com CNAME b1.lc: the subdomain your short links use.
- _bn-verify.go.example.com TXT (the value from your dashboard): proof that you own the domain.
- www.example.com CNAME example.com: a common pattern that sends www to the root's address.
Checking and troubleshooting
After saving a record, check it with a lookup tool or the command dig go.example.com CNAME +short, which should print the target. New records often answer within minutes; changes to existing ones can take as long as the old TTL to reach every resolver. If the lookup shows nothing, check for a typo in the name, a second record at the same name, or a panel that adds your domain automatically (go.example.com.example.com).
In BN Shortener, enter the domain under Integrations > Custom Domains, then add the CNAME to b1.lc (or the A record shown for a root domain) and the TXT record at _bn-verify. The dashboard checks both and issues SSL automatically once they are found. The full walk-through is in use your own domain for short links.
Related: Custom domain, TXT record, /blog/use-your-own-domain-for-short-links/
Sources
- RFC 1034: Domain names, concepts and facilities, checked 2026-10-24
- Cloudflare Docs: DNS record types, checked 2026-10-24
Questions
What is the difference between a CNAME and an A record?
An A record points a name straight to an IPv4 address. A CNAME points a name to another name, which then supplies the address. A CNAME follows the target if its address changes.
Can I use a CNAME on my root domain?
Not as a standard record, because the root already has SOA and NS records. Use an A record or your DNS provider's CNAME flattening.
How long does a CNAME take to work?
A new record often answers within minutes. Changing an existing one can take up to its previous TTL, sometimes hours, to reach every resolver.
Can a CNAME point to a URL with a path?
No. A CNAME only holds a hostname. Redirecting go.example.com/spring to a page is the job of the service the CNAME points to.
Why do I also need a TXT record?
The CNAME routes traffic; the TXT record proves you control the domain. BN Shortener looks for it at _bn-verify before it issues SSL and serves your links.
Try it on your next link
The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.