How to avoid CNAME flattening


#1

226567.com

What is being displayed on my DNS panel now on cloudflare goes like this

the 1st record: 226567.com cname to 301.dslkf.com (already put on Cloudflare with a flattening mark)
the 2nd record: www.226567.com cname to 301.dslkf.com (already put on Cloudflare with no mark)

however, the 1st record is nowhere to be found on my CNAME server which is 301.dslkf.com.

Through trial and error it seemed to have occured to me that all this drama had something to do with CNAME Flattening.

If the flattening is on, the record will not function

If the flattening is off, the record will work

How do I find a way address this

thanks


#2

If CNAME flattening could be turned off - I believe your record would not work. The name of the DNS record is the root zone, and because “A CNAME record is not allowed to coexist with any other data” per RFC 1912 (the root zone has an SOA record), CNAME flattening is required if you want to CNAME at the root.