Reputation: 18065
Azure provides a way to access a VM using *.cloudapp.net
, is there something similar in GCP? If yes, where/how can I see the exact CNAME for accessing the instnace?
I read it that its *.googleapi.com
, but not able to find it anywhere on GCP portal
Note this SO question comments says it should be of format computername.c.googleprojectid.googleapis.com
, is that not correct?
Upvotes: 4
Views: 1491
Reputation: 76799
You could use Cloud DNS, while setting the name-servers at the registrar to Cloud DNS. See Updating your domain's name servers. This means, you'd have to provide your own domain-name and at least one external IP - even with external DNS. The location of the zone-file to edit merely depends upon which name-servers the domain registration has set.
Upvotes: 1
Reputation: 81454
Google Cloud Compute Engine virtual machines (instances) are accessed by IP address outside Google Cloud or by internal DNS name inside Google Cloud. If you want a public DNS name, you must configure the public DNS name in your DNS server for your domain name.
Google Cloud does create an internal DNS name for your instance. However, this DNS name is private and only resolves in the same VPC as the instance.
Upvotes: 2