How to map custom domain to app for apps via Cloud DNS api?

Is there any documentation that explains how to map a custom domain to an app hosted on App Engine and exclusively through the Cloud DNS API or any other Google cloud API?

I have already added a CNAME record for "www.my-domain.com". pointing to "ghs.googlehosted.com." and I set the nameserver addresses I got from cloud DNS to my domain registrar account. But I still get 404s on google server (404 pages with google logo, etc.).

[Update]: As I mentioned in my other answer to this thread, Amazon Route53 has a specific type of "alias" DNS record that you can map to a domain with any resource on AWS (load balancer, EC2 instance, etc.) e). But I cannot find such a DNS mapping in Google Cloud for an App Engine hosted application.

Thank.

+3


source to share


1 answer


You have completed half of the steps actually as Jarod pointed out, you also need to register your domain in the web console.

The Cloud DNS service takes care of specifying where traffic destined for your CNAME should go. Registering your domain in the web console will essentially tell Google when it is accepting traffic from www.my-domain.com.

in order to redirect it to your-app.appspot.com

.



Hope this helps.

+1


source







All Articles