Search code examples
google-cloud-platformvirtual-machinecname

public instance CNAME for GCP compute instance


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?


Solution

  • 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.