CNAME Flattening, Explained
example.com , with nothing in front of it). Instead of answering with the target hostname, NameBright looks up that hostname itself and answers with the IP addresses it finds. Anyone looking up your domain gets A records, the same as if you’d entered the IP addresses by hand.
How a standard CNAME answer works
www.example.com and it has a standard CNAME record, NameBright’s nameservers answer with the target hostname, such as sites.yourplatform.net . The visitor’s resolver then makes a second lookup for that hostname to get an IP address. The CNAME itself never contains an address.
How a flattened answer is different
example.com never sees the CNAME or the target hostname.
CNAME query shows |
Why the root domain needs it
Where NameBright applies it
On the root domain. A CNAME added with the subdomain left blank (or entered as @) is answered as a flattened record. On a wildcard. A CNAME on *, which covers every subdomain that doesn’t have a record of its own, is also flattened.
www or shop , is answered as a standard CNAME. Flattening happens automatically, and there’s no setting to turn it on or off.
Setting it up
Leave the subdomain blank for the root domain, or enter *for a wildcard. Enter only the hostname your provider gave you, such as sites.yourplatform.net, with no https://and no path. Delete any A or AAAA records already on that name first, so the old addresses don’t conflict with the flattened ones.
Common uses
Pointing your root domain at a website platform that gives you a hostname instead of an IP address. Putting your root domain behind a CDN or a cloud load balancer. Sending every subdomain to one platform with a wildcard, for services that create a subdomain per customer or per landing page.
Limitations
Some providers’ verification checks can fail. A platform that checks specifically for a CNAME record on your root domain, before activating it or issuing an SSL certificate, won’t find one, because the answer is A records. Traffic still routes correctly. Ask the provider whether it accepts an A record or a TXT verification record instead. CDN location routing is less precise. CDNs pick the closest server based on who is asking. With flattening, NameBright’s servers do the asking, so the CDN may choose a server near NameBright rather than near your visitor. Most sites won’t notice. If response time matters a lot, put your site on wwwwith a standard CNAME and forward the root domain to it (see Set Up URL Forwarding). IP address changes aren’t instant. NameBright refreshes the target’s addresses periodically, and resolvers then cache the answer for your record’s TTL. After your provider changes its IP addresses, allow for both before expecting every visitor to reach the new ones. Your root domain depends on the target. If the target hostname is misspelled, deleted, or has no IP address, your root domain stops resolving too.