GCP计算实例的公共实例CNAME [英] public instance CNAME for GCP compute instance
问题描述
Azure提供了一种使用*.cloudapp.net
访问VM的方法,在GCP中是否有类似的东西?如果是,我在哪里/如何看到用于访问该机构的确切CNAME?
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?
我读到它是*.googleapi.com
,但无法在GCP门户上的任何地方找到它
I read it that its *.googleapi.com
, but not able to find it anywhere on GCP portal
请注意,此 SO问题评论说,它应该是格式computername.c.googleprojectid.googleapis.com
,不正确吗?
Note this SO question comments says it should be of format computername.c.googleprojectid.googleapis.com
, is that not correct?
推荐答案
可以通过Google Cloud外部的IP地址或Google Cloud内部的内部DNS名称访问Google Cloud Compute Engine虚拟机(实例).如果要使用公共DNS名称,则必须在DNS服务器中为域名配置公共DNS名称.
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确实为您的实例创建了一个内部DNS名称.但是,此DNS名称是私有的,只能在与实例相同的VPC中解析.
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.
这篇关于GCP计算实例的公共实例CNAME的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!