Google compute engine 在Google Compute实例中设置完全限定域名

Google compute engine 在Google Compute实例中设置完全限定域名,google-compute-engine,fqdn,Google Compute Engine,Fqdn,许多基础架构配置需要完全限定的域名才能设置。 我们如何在google计算实例上设置FQDN? 可在VPC内部使用的FQDN和/或可在外部使用的FQDN这里有一个文档,解释如何在计算引擎实例中工作 也许此解决方案适合您的需要: # edit the hosts file and add your FQDN $ sudo vi /etc/hosts # prevent the overwrite $ sudo +i chattr -i /etc/hosts 您还可以使用Google Clou

许多基础架构配置需要完全限定的域名才能设置。 我们如何在google计算实例上设置FQDN?
可在VPC内部使用的FQDN和/或可在外部使用的FQDN这里有一个文档,解释如何在计算引擎实例中工作

也许此解决方案适合您的需要:

# edit the hosts file and add your FQDN
$ sudo vi /etc/hosts  
# prevent the overwrite 
$ sudo +i chattr -i /etc/hosts

您还可以使用Google Cloud DNS,并通过编辑resolv.conf文件将其用作内部DNS

这就是您要查找的吗?