Question

How to add CNAME to cloudfront

Posted November 25, 2021 70 views
DNS

I am trying to add a cloudfront CNAME reference for an existing domain name. I need to redirect my entire domain to cloudfront so I try to enter @ in the name field but get an invalid CNAME error.

What am I missing?

P.S. I have removed the A record already.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there,

Generally speaking, you can not add CNAME records for your root domain name. CNAME records are meant to be used for subdomains.

There are DNS providers like Cloudflare though, that make this possible.

In case that you need the CNAME record for your root domain, I would recommend changing your DNS to Cloudflare:

https://cloudflare.com/

Hope that this helps.
Best,
Bobby