【问题标题】:Setting up fully qualified domain name in Google Compute Instances在 Google 计算实例中设置完全限定域名
【发布时间】:2017-09-09 16:20:08
【问题描述】:

许多基础架构配置都需要一个完全限定的域名来设置。 我们如何在谷歌计算实例上设置 FQDN? 可在 VPC 内部使用的 FQDN 和/或可在外部使用的 FQDN

【问题讨论】:

标签: google-compute-engine fqdn


【解决方案1】:

这里是解释FQDN如何在计算引擎实例中工作的文档。

也许这个解决方案适合您的需求:

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

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

【讨论】:

    猜你喜欢
    • 2012-07-19
    • 2012-03-15
    • 1970-01-01
    • 1970-01-01
    • 2014-05-28
    • 2015-05-11
    • 2014-01-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多