3 ms·
I wondered how this technically works, and the answer is over here: https://support.cloudflare.com/hc/en-us/articles/200169056-CNAME-Flattening-RFC-compliant-su
by buro9 13y ago
I wondered how this technically works, and the answer is over here:
https://support.cloudflare.com/hc/en-us/articles/200169056-CNAME-Flattening-RFC-compliant-support-for-CNAME-at-the-root https://support.cloudflare.com/hc/en-us/articles/200169056-C...
CloudFlare uses CNAME Flattening to present a CNAME as an A record.
The CloudFlare server generating the response follows the CNAME chain
so that the response to the request from the client (for example, the
browser) contains only non-CNAME data -- usually, an IP address. This
effectively creates an A or an AAAA record. Without flattening,
CloudFlare would serve the CNAME record directly to the recursor
(the DNS resolver that translates the domain name to an IP address).
They just resolve the destination and serve it as an A record.
- jlgaddis 13y ago> I wondered how this technically works, and the answer is over here: It was described in the article but perhaps not as clearly: "What happens is that, if there's a CNAME at the root, rather than returning that record directly we recurse through the CNAME chain ourselves until we find an A Record. At that point, we return the IP address associated with the A Record."