title: how to connect cloudflare root domain to AWS Elastic Beanstalk
body: <p>I wish to setup Cloudflare so that both mydomain.com and www.mydomain.com will reach the same Elastic Beanstalk host.</p>
  
  <p>I've created a CNAME for the "www" subdomain, it works great.
  But how do I handle the mydomain.com DNS root entry? It's currently an A record, pointing to some IP, but in order to point to EB, I need to have a CNAME like "www", correct? If so, is it safe to somehow replace the A record with a CNAME despite the fact this is a root DNS entry rather than some subdomain..</p>
  
  <p>thanks.</p>