Skip to content
Products
AI Website Builder New VPS Hosting Cloud Servers Web Hosting Dedicated Servers Domains
Company
About Documentation Support Center Contact Get Started Login Client Area
ALL SYSTEMS OPERATIONAL
Domains

Can't Add a CNAME on Your Root Domain? Here's the Fix

Getwebup 5 min read

Your DNS provider's setup screen says "just add a CNAME record" — but when you try to add it on your root domain (yourdomain.com, not www.yourdomain.com), cPanel's Zone Editor either rejects it or something on your site quietly breaks. This is one of the oldest gotchas in DNS, and it still catches people out in 2026 because so many modern platforms (Vercel, Netlify, Shopify, Webflow, Framer) hand out a CNAME target as if it works everywhere.

Why a CNAME Can't Live at the Root

This isn't a cPanel limitation or a Getwebup restriction — it's baked into the DNS spec itself (RFC 1034). A domain's root, or "apex" (yourdomain.com with nothing in front of it), also has to hold your NS records, and usually an SOA record and sometimes MX records for email. The rule for CNAME is strict: if a hostname has a CNAME record, it cannot have any other record type at the same time.

So the moment you try to CNAME your apex to some third-party host, you're saying "this name has no other records" — which breaks your nameserver delegation and kills inbound email in the same stroke. Every reputable DNS panel, including cPanel's Zone Editor, blocks this or silently drops the conflicting records. That's the "still not working" ticket.

Subdomains don't have this problem. blog.yourdomain.com or app.yourdomain.com can absolutely be a CNAME, because nothing else needs to live at that exact name. It's specifically the bare root — yourdomain.com — where this bites.

The Symptom

  • You add a CNAME record with Host left blank (or set to @) in Zone Editor, and it either errors out or gets saved but the site never resolves.
  • Mail stops arriving because the CNAME silently overrode your MX records.
  • A hosting platform's docs say "point your domain via CNAME" and give zero guidance on what to do for the apex — only for www.
  • dig on the root shows nothing, or shows stale A records that don't match what the platform told you to set.

How to Check What You're Dealing With

From a terminal (or cPanel Terminal), check what's actually at your root right now:

dig yourdomain.com ANY +noall +answer
dig yourdomain.com MX +short
dig yourdomain.com NS +short

If MX records show up, you have working mail at the apex — any fix below has to preserve that. If you see an unexpected CNAME already sitting there, that's very likely why the domain looks broken to some visitors and fine to others (resolvers cache differently).

Fix 1: Use an A Record Instead (Simplest, Most Common)

Most platforms that ask for a CNAME at the root will also publish a fixed set of IP addresses for exactly this situation — check their docs for "apex domain" or "root domain" setup, not just the generic CNAME instructions. Add those as A (and AAAA, if they give IPv6) records instead:

Type: A
Host: @ (or leave blank — cPanel fills in yourdomain.com)
Value: 76.76.21.21   (example platform IP — use the one your provider gives you)
TTL: 3600

The downside: if the platform changes its IPs later, you have to update this manually. That's exactly the problem CNAMEs solve for subdomains — you just don't get that convenience at the root.

Fix 2: ALIAS / ANAME Records (Best of Both Worlds)

Some DNS providers offer a record type that behaves like a CNAME (it points to a hostname and follows updates automatically) but is legal at the apex, because the DNS server itself resolves it to an A record before answering queries — so as far as the wire protocol is concerned, it's just an A record. Different providers call this the same thing under different names:

ProviderRecord name
CloudflareCNAME flattening (works automatically at the root)
DNSimple, DNS Made EasyALIAS
Amazon Route 53Alias record
cPanel Zone EditorNot natively supported as of 2026 — see workaround below

Stock cPanel DNS doesn't have a true ALIAS/ANAME record type in the Zone Editor. If your domain's nameservers point to your Getwebup cPanel hosting and you need apex-level ALIAS behavior, the practical options are:

  • Move DNS hosting to Cloudflare (keep your site hosted wherever it is) and use CNAME flattening at the root — this is free on Cloudflare's basic plan and handles the automatic-update problem cleanly.
  • Ask us to set the correct A/AAAA records and monitor the platform's IP list — for most static hosts these change rarely enough that this isn't a real burden.

Fix 3: Redirect the Root to www Instead

If the third-party service is fine living on a subdomain, sidestep the whole apex problem: put the actual service on www.yourdomain.com (a normal CNAME, no restrictions) and set the root to redirect there.

# In cPanel > Domains > Redirects
Type: Permanent (301)
https://yourdomain.com  →  https://www.yourdomain.com

This is the cleanest fix when you don't specifically need the bare domain to serve content directly — and it's what most modern site builders quietly recommend once you dig past their quick-start docs.

Don't Forget Mail

Whatever fix you pick, re-run dig yourdomain.com MX +short afterward. A records and ALIAS/ANAME setups don't touch MX — only an actual CNAME at the root would have wiped them. If you moved DNS hosting to Cloudflare in Fix 2, re-add your MX, SPF, and DKIM records there manually; they don't carry over automatically from cPanel's zone.

Prevention

  • When a platform's onboarding says "add a CNAME," check whether they mean the root or a subdomain before you touch Zone Editor — their docs usually clarify this if you look past the first paragraph.
  • Keep a copy of your current DNS zone (Zone Editor > Export, or dig yourdomain.com ANY) before making apex changes, so you can restore MX/TXT records fast if something gets wiped.
  • If you expect to juggle apex records often (multiple third-party integrations, frequent IP changes), moving DNS management to Cloudflare in front of your Getwebup hosting saves you from re-learning this every time.

Frequently asked questions

Why does cPanel's Zone Editor reject a CNAME on my root domain?

DNS rules (RFC 1034) say a hostname with a CNAME record can't have any other record at the same name. Your root domain also needs NS, SOA, and usually MX records, so a CNAME there would conflict with all of them. cPanel blocks it to stop you from breaking your own nameservers and email in one move.

What's the difference between a CNAME and an ALIAS/ANAME record?

A CNAME points a hostname to another hostname and is resolved fresh by every DNS client, which is why it can't coexist with other records at that name. An ALIAS/ANAME record is resolved server-side by your DNS provider into an A record before it's ever sent out, so it behaves like a CNAME (auto-updates if the target IP changes) but is legal at the domain root.

Does cPanel support ALIAS or ANAME records natively?

Not as of 2026 — cPanel's Zone Editor only offers standard record types (A, AAAA, CNAME, MX, TXT, SRV, CAA). For true ALIAS-style behavior at the apex, the common workaround is pointing your domain's nameservers to Cloudflare, which offers CNAME flattening at the root for free.

Will fixing my apex CNAME break my email?

Only if a CNAME was already sitting at the root — that would have already wiped your MX records. Switching to A records, ALIAS/ANAME, or a www redirect doesn't touch MX at all. Still, always run `dig yourdomain.com MX +short` before and after any apex change to confirm mail is intact.

#dns #cname #apex-domain #alias-record #zone-editor #dns-troubleshooting

Keep reading

Chat with Support