Although, it is not our recommend setup, it is possible to use your root domain as your primary address (if your DNS host supports it) by using an ANAME record (also known as ALIAS records or CNAME flattening). This is like a CNAME record, but it can be used on your root domain.
Therefore, you can point your domain without the
www subdomain like
example.com to our CloudFront CNAME (eg: abc123.cloudfront.net). Then redirect the
www subdomain to the root.
As this is not standard practice there are only a handful of DNS providers that offer this advanced setup.
Cloudflare (see our step by step guide)
AWS (Route 53) (see our step by step guide)