I have deployed an app using google compute cloud which is visible from a raw ephemeral IP address ... How to I link this ephemeral IP to my domain ?
To make this easier I registered the domain ( mydomain.org ) at Google Domains
I added a type A Record Set on my managed zone :
gcloud dns managed-zones describe myzone
creationTime: '2016-03-28T23:05:31.385Z'
description: just another zone
dnsName: mydomain.org.
id: '2379583277824599330'
kind: dns#managedZone
name: myzone
nameServers:
- ns-cloud-e1.googledomains.com.
- ns-cloud-e2.googledomains.com.
- ns-cloud-e3.googledomains.com.
- ns-cloud-e4.googledomains.com.
from here you can see the raw IP (111.222.333.444) where the app is visible from
gcloud dns record-sets list --zone myzone
NAME TYPE TTL DATA
mydomain.org. A 5 111.222.333.444
mydomain.org. NS 6 ns-cloud-e1.googledomains.com., ns-cloud-e2.googledomains.com., ns-cloud-e3.googledomains.com., ns-cloud-e4.googledomains.com.
mydomain.org. SOA 6 ns-cloud-e1.googledomains.com. cloud-dns-hostmaster.google.com. 1 21600 3600 1209600 300
yet when I do a
curl mydomain.org
it just responds with (similar from browser)
curl: (6) Could not resolve host: mydomain.org
yet using the raw IP it correctly connects to the cloud app
curl 111.222.333.444
here I show some command line DNS lookups
nslookup mydomain.org ns-cloud-e1.googledomains.com.
output
Server: ns-cloud-e1.googledomains.com.
Address: 216.239.32.110#53
Name: mydomain.org
Address: 111.222.333.444
What am I missing ? What is the gcloud dns
command I am missing ? The process would be : deploy app to ephemeral IP -> issue unknown command to link this IP to domain ... I want to be able to issue this after each deploy (a fresh ephemeral IP) from my app still in development ... I do not want a Static IP
I deployed the app using command line tools gcloud and kubectl so its a Google Compute (IaaS) app not a Google App Engine (PaaS) app
I did the domain register a few days ago so the domain has propagated