How can i setup cloud CDN? I have followed the guides.
After creating load balancer and backend service with Internet network endpoint group
Can i use mydomain.com in google cdn or I have to use cdn.mydomain.com?
As on cloudflare you can use main domain for cdn (mydomain.com) but i am not able to use in google cdn.
After creating the CDN, should i create A name ? (If i create A name - i have to delete main A name)
My server is on aws lightsail and dns is on namecheap
How can i add A name ? I am confused
Help will be appreciated.
The Domain configuration/setup has nothing to do with CDN and it is a caching service. For domain mapping, you have to use Google Cloud DNS. Similar to Cloudflare which provides DNS service, you can configure just main domain(domain.com) or also subdomain in the Google Cloud DNS [1]
If you are about to map/setup your domain in Google Cloud DNS,
i) The NS records which are created in the Google Cloud DNS once the zone is created, needs to be updated in the Namecheap site so that the connectivity between registered domain and NS in Google DNS is established.
ii) Then ‘A name’ needs to be created in Google Cloud DNS to map the domain with the external IP address of the hosting server and the same detail also needs to be updated with your domain registrar i.e., Namecheap.
iii) If you are making use of Load balancer, then make sure that A records of your domain are pointing to the IP address of your load balancer so the traffic going to your website will be rerouted to LB and checked if they are cacheable for Cloud CDN.
To make use of Google CDN, you just need to enable/disable CDN while configuring load balancer -> backend services [2] and if you are using Internet NEG, you need to map the domain name in the Create a network endpoint group page.
[1]https://cloud.google.com/dns/docs/quickstart#update_your_domain_name_servers
[2]https://cloud.google.com/cdn/docs/setting-up-cdn-with-external-origin
Regards,
Anbu.
Related
I created an Instance (Windows Server 2016) within AWS and the domain URL amazon gave me as below:
ec2-10-212-103-15.us-east-2.compute.amazonaws.com
Then, to create a subdomain I went to Route53 (https://console.aws.amazon.com/route53/home#Dashboard)
Here is the picture of my configurations:
But I still cannot open http://uat.ec2-10-212-103-15.us-east-2.compute.amazonaws.com/
(Note: The IP is made-up)
What do I need more to do?
Thanks
You're getting it wrong. Route53 is for custom domains you purchase from any of source (GoDaddy, Amazon, Namecheap naming a few).
The URL ec2-10-212-103-15.us-east-2.compute.amazonaws.com you've mentioned isn't the domain name. It is actually DNS to your server. If your instance is not behind a NAT gateway then you can directly access it through ec2-10-212-103-15.us-east-2.compute.amazonaws.com else you need to place a load balancer with public accessibility or place instance behind an internet gateway.
I have set up a static website using GCP Bucket Storage and loaded SSL certificate using HTTPS Load Balancer. My DNS record is set to: CNAME pointing to to bucket with www, (c.storage.googleapis.com) and A record to the Load Balancer Proxi IP with #. When I go to the website using http protocol I get a 404.
Am I missing something?
I have tried to see if there was a way to reconfigure the DNS and the bucket but couldn't find a way.
I hope to be able to get both http and https versions to work
I'm new AWS and I have to continue maintaining previous developer service that is hosted on AWS. The ec2 instance that is hosted has map to domain name of https://****c.k**g.g***an.org.au, however I couldn't find this domain name anywhere. I tried looking at route53, but there's no such domain name registered.
Please help, how do I find the domain name that is mapped to the EC2 instance? Where can I get that information. The reason because I want to deploy a new instance but with the same domain name.
Edit: Masking DNS for privacy reasons.
Are you sure your DNS is hosted by Route53? Running dig against k***.g****.org.au has the SOA held by ns1.mooball.net.
The whois for mooball.net returns register.com as the owner, so I would consider reaching out to your internal teams to see who holds that account, then check your DNS delegation settings by logging in to register.com.
Often times the client will control their own DNS, so it would also be worth confirming with your client where their root DNS (garvan.org.au) is hosted - you can then trace the subdomain delegation to see where it is ultimately hosted.
check route53 service in AWS , since the domain is served by https..it could be the domain mapped to a load balancer and the load balancer has the instance...anyway you can know from the route53 there you find all the records
I think my problem is the same as this one: (sorry for the duplicate)
Google Cloud Platform Bucket: serving content with custom domain over https
But, here my settings.
First, I created a custom subdomain : cdn.domain.com to have a SSL certificat. (to use it after)
I created a bucket, named cdn.domain.com
I created a Cloud DNS and add a A record to point to my load balancer's IP
And here is my load balancer configuration:
Http and HTTPS (with my certificat)
HTTPS certificat
So, is that possible to help me to setting my CDN please ?
https://35.227.242.87/web/build/css/select2.min.css it is unsecure :/
Change Google IP by my custom domain cdn.domain.com ?
https://cdn.domain.com/web/build/css/select2.min.css is that possible ?
Thank you very much.
[SOLVED] 2018-04-18
I did it. So, this is my configuration:
1 SSL certificat for my domain (cdn.domain.com)
no custom domain in google cloud
Added a load balancer with HTTP & HTTPS protocol and static IP on my bucket storage.
changed my domain DNS (cdn.domain.com) to point to my load balancer static IP
It's done and it works, very easy :)
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
See:
https://support.cloudflare.com/hc/en-us/articles/200168986-How-do-I-add-a-Amazon-ELB-Elastic-Load-Balancing-record-to-CloudFlare-
I suggest to manage your domain DNS with CloudFlare.
Add a CNAME record for your subdomain demo which points to that IP.
On CloudFlare Console go to Crypto > Origin Certificates. Create a new one with RSA, then import it to AWS Certificate Manager at us-east-1. For the certificate chain use this.
Be sure that Always use HTTPS in Crypto tab is on.
After some minutes you should be using your domain pointing to AWS with HTTPS working fine.
That's what I did to make a subdomain to work with an AWS API endpoint with SSL.
I decided like this:
I created in the cloudflare, in the DNS table, two CNAME records that point to the dns name of the load balancer generated in aws.
The first record created must contain in the "Name" field, the value "www" with the "content" field pointing to the url of the load balancer in aws. The second record, on the other hand, points to root, containing the value "#" in the "Name" field and "Content" pointing to the same load balancer server in "aws".
See the images below for a better understanding.
I've tried with the Cname record with target as Load Balancer DNS name, but the website is not secured.
If you need static IP for your Load Balancer then use Global Accelerator. It will provide you a static IP. After that create an A record with domain name in cloud flare and content with your Static IP provided by Global Accelerator and the Proxy status must be Proxied.