Setting up CloudFlare with Route 53?

7,948

Solution 1

Disclosure: I work at CloudFlare.

If you happen to have a server with Python and dig installed, you can set this on a cron job: https://github.com/bundan/CloudFlare-ELB-Updater and basically flatten the CNAME at the root to the associated A records -- therefore addressing the CNAME at the root issues.

Solution 2

You can attempt a manual CNAME setup. Here's a link to the relevant article in the CloudFlare knowledge base.

According to CloudFlare support, the setup with a CNAME at the root domain in Route 53 is less than ideal, but they offer some remediation.

I know this is less than satisfying for you.

Share:
7,948

Related videos on Youtube

Shamoon
Author by

Shamoon

Building products + communities with code. Entrepreneur with more losses than wins. Lifelong learner with a passion for AI+ML / #Bitcoin.

Updated on September 18, 2022

Comments

  • Shamoon
    Shamoon almost 2 years

    I'm trying to get CloudFlare to sit in front of Route 53. I have my main web server on an ELB (which doesn't have an IP address). CloudFlare needs an IP for an A record, so how can I accomplish this?

  • Shamoon
    Shamoon about 11 years
    How often should the cron job run?
  • xxdesmus
    xxdesmus about 11 years
    @Shamoon really as often as you'd like. ELBs don't change all that often, but when they do you'll want the newest IPs in place as quickly as possible. DNS changes within your CloudFlare account push out across our entire network in under 1 minute so I'd recommend going with a value such as every minute for the CRON job. The script should not consume much in the way of resources so it shouldn't impact the performance of your server even if running it that often.
  • Vic
    Vic almost 9 years
    The above linked repo has disappeared.
  • xxdesmus
    xxdesmus almost 9 years
    @vic we introduced CNAME flattening. The ELB updated isn't needed any longer. See: blog.cloudflare.com/…
  • Vic
    Vic almost 9 years
    You're a good man.