How to add CNAME to cloudfront

  • Posted November 25, 2021
  • 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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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:

Hope that this helps. Best, Bobby