How to create DNS ALIAS on Cloudflare

Hi All,

I am currently trying to move a client domain from AWS to Cloudflare.
The current provider has sent me the record and he wants the following setup on Clouflare.

Eg:

Primary Domain : xyz.com.au
Record Type CNAME
Destination: skujhsiuhgf.pfgr.com

(This part I have already done)

Second part is what I am not sure how to do.

Address: www.xyz.com.au
Record Type: ALIAS
Destination: xyz.com

Please let me know how I can create this type of ALIAS record on Cloudfalre.

Thanks,
Rizni

“ALIAS” is not an RFC compliant DNS record. Your best bet is to use a CNAME instead.

Hi,

Thanks for the quick reply.

Will a CNAME work the same way as an ALIAS does?

image001.png

ALIAS is not a standard type of DNS record. How do you expect it to work?

The most likely scenario is that you cannot have a CNAME at the root of your domain (example.com). This is a limitation of the DNS protocol. Some providers have custom DNS types to get around this limitation, and they do some magic to return the expected result to users. In the case of Cloudflare, they call it CNAME Flattening. You just create a normal CNAME, and using magic, they return the relevant IP address when requested (as if you had entered an A or AAAA record).

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.