{"id":2613,"date":"2019-10-22T17:24:10","date_gmt":"2019-10-22T09:24:10","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&#038;p=2613"},"modified":"2022-10-05T08:02:45","modified_gmt":"2022-10-05T00:02:45","slug":"understand-and-configure-cname-flattening","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/understand-and-configure-cname-flattening","title":{"rendered":"Understand and configure CNAME Flattening"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2613\" class=\"elementor elementor-2613\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-77178ee0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"77178ee0\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5c823451\" data-id=\"5c823451\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c4a4c9d elementor-widget elementor-widget-heading\" data-id=\"c4a4c9d\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Understand and Configure CNAME Flattening<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-67f1d482 elementor-widget elementor-widget-text-editor\" data-id=\"67f1d482\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<h3><strong>How CNAME Flattening works<\/strong><\/h3><p>Per DNS specifications (RFCs), a domain cannot have a\u00a0<em>CNAME record<\/em>\u00a0and another DNS record of a different type if both records would share the same name. configure CNAME Flattening DNS RFCs also require an <em>MX record<\/em>\u00a0to correspond to a related\u00a0<em>A record<\/em>\u00a0and not a\u00a0<em>CNAME<\/em>. This is problematic when you need a\u00a0<em>CNAME<\/em>\u00a0for your root (for example, a\u00a0<em>CNAME<\/em>\u00a0from example.com to example.herokuapp.com) but also need another type of DNS record at the root domain such as an\u00a0<em>MX record<\/em>\u00a0for mail delivery.<\/p><p>Typically, the aforementioned situation would cause problems receiving email. However,\u00a0<strong>CNAME Flattening <\/strong>ensures the chain of\u00a0<em>CNAMEs<\/em> is follow to an <em>A<\/em>\u00a0or\u00a0<em>AAAA<\/em>\u00a0record to allow mail delivery while still adhering to DNS RFCs. The\u00a0<em>CNAME<\/em>\u00a0responses are cached and DNS TTLs are respected.<\/p><p><strong>CNAME Flattening<\/strong>\u00a0still works if the corresponding DNS\u00a0<em>CNAME record<\/em> is &#8220;grey cloud&#8221; in the <strong>DNS<\/strong>\u00a0app of the Cloudflare dashboard.<\/p><hr \/><h3><strong>How to change settings for CNAME Flattening<\/strong><\/h3><p><strong>CNAME Flattening<\/strong> cannot be disable. By default, domains are setup to only flatten\u00a0<em>CNAME records<\/em>\u00a0at the root domain.<\/p><p>Domains on Pro, Business and Enterprise plans can either apply\u00a0<strong>CNAME Flattening<\/strong>\u00a0to\u00a0<em>CNAMEs<\/em>\u00a0at the root domain or for all\u00a0<em>CNAMEs<\/em>\u00a0within the domain. To flatten all\u00a0<em>CNAMEs<\/em>\u00a0in the domain, select Flatten all\u00a0<em>CNAMEs <\/em>from the\u00a0<strong>CNAME Flattening<\/strong>\u00a0dropdown menu within the\u00a0<strong>DNS<\/strong>\u00a0app of the Cloudflare dashboard.<\/p><p>Free plans can only flatten\u00a0<em>CNAMEs<\/em>\u00a0at the root domain.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Understand and Configure CNAME Flattening How CNAME Flattening works Per DNS specifications (RFCs), a domain cannot have a\u00a0CNAME record\u00a0and another DNS record of a different type if both records would share the same name. configure CNAME Flattening DNS RFCs also require an MX record\u00a0to correspond to a related\u00a0A record\u00a0and not a\u00a0CNAME. This is problematic when &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.mondoze.com\/guide\/kb\/understand-and-configure-cname-flattening\"> <span class=\"screen-reader-text\">Understand and configure CNAME Flattening<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[53],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2613"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=2613"}],"version-history":[{"count":6,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2613\/revisions"}],"predecessor-version":[{"id":18707,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2613\/revisions\/18707"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=2613"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2613"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2613"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=2613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}