1

我对 Google Cloud DNS 或网络相关的东西非常陌生。

我设置我的服务器进行托管,现在我想设置我的 DNS 服务器来管理子域和其他记录。 问题第一

我的第一个问题是:我是否必须在 Google Cloud DNS 中为不同的网站创建不同的区域?

例如

www.xyz.com 和 www.abc.com(需要新)或两者都可以在同一区域和记录集中进行管理。如果是的话,任何简短的描述都会对我有所帮助。

最初设定

我已经完成了这些步骤并为我的网站创建了记录。

我还有几个问题:

  1. 如何正确创建子域记录?

我的设置

设置

更新:问题提出

4

3 回答 3

2

您需要为 www.abc.com 和 www.xyz.com 设置单独的区域。

您可以为 www.abc.com 和 m.abc.com 使用相同的区域;除非他们需要单独的服务器,否则您可以为两者使用相同的 CNAME 别名目标。

于 2016-10-27T05:45:55.903 回答
0
  1. 如何正确创建子域记录

所以你想创建子域。按照以下步骤为子域设置 DNS

  1. 首先在Network services下开启Cloud DNS
  2. 单击以用于 NS 记录的区域名称
  3. 现在单击“添加记录集”按钮为您的子域创建新的 NS 记录集
  4. 首先创建“A”记录并在“DNS 名称”中输入您的子域名,然后在 IPv4 地址中输入您的 IP 地址(主实例 IP 地址,即您的 IPv4 地址为 104.199.119.40)。其次创建“CNAME”记录集并在“DNS 名称”中键入您的子域名,如“www.sub”添加规范名称(您的主域名) shiftboolean.com

记录更新将需要一些时间来传播,具体取决于您区域中的 TTL 值。我希望这对你有帮助。如果您需要有关子域的 DNS 记录集的任何帮助,请告诉我。我正在使用上述步骤并在谷歌云平台上成功创建了我的子域。

于 2020-01-02T15:39:39.923 回答
0

How to set up a Cloud DNS managed zone and a resource record for your domain name. It walks through a simple example on setting up a Cloud DNS managed zone and then setting up Address (A) and Canonical Name (CNAME) records for the domain. Please see below procedure on how to set up Cloud DNS managed zone, A record and CNAME records:

Create a managed public zone [1].

A managed zone is a container for DNS records of the same DNS name suffix. A managed zone has a set of name servers that accept and responds to queries. Create a new managed public zone [1]:

The Zone details page is displayed. Note that default NS and SOA records have been created for you. Once you have the list of your NS record you need to update your NS record on your Domain registrar. NS record for Cloud DNS should be the same on your Domain Registrar.

Create a new record for A record [2].

Create a CNAME record [3].

The record update will take some time to propagate depending on the time-to-live (TTL) values in your zone. You can verify that the DNS records are working by visiting the domain name and confirming that the domain resolves to your IP address.

[1] https://cloud.google.com/dns/docs/quickstart#create_a_managed_public_zone

[2] https://cloud.google.com/dns/docs/quickstart#create_a_new_record

[3] https://cloud.google.com/dns/docs/quickstart#create_a_cname_record

于 2019-05-02T10:21:47.797 回答