I am running my website on AWS.
I have one load balancer for my two web servers. My load balancer doesn't have a static IP address, it has a domain name.
I want my traffic to come only via the load balancer. I am using Cloudflare's DNS instead of Route 53, because that's what the Cloudflare instructions said.
I cannot add the load balancer's IP as an A record
because it is dynamic and cannot be added through Cloudflare's DNS panel (Not like Route 53). Help me I am stuck in this situation. No solution is offered by Cloudflare so far.
Has anyone faced the same issue?
You can set your Cloudflare record as a CNAME
alias of your ELB's A record
The above URL required login, after login showing error message like this "oops You're not authorized to access this page". let me know is there any other alternate way to solve this issue.
@KishoreDR well, apparently Cloudflare has shuffled their docs, but the answer is here in the message: create a CNAME alias of ELB's A record.
May I know if this
CNAME
to ELB'sA record
should use cloudflare's proxy or not?@DarrylRN it's up to you. if you want Cloudflare to act as a CDN, go ahead. If you just want to use DNS, leave this option greyed out.