我对 Google Cloud DNS 或网络相关的东西非常陌生。
我设置我的服务器进行托管,现在我想设置我的 DNS 服务器来管理子域和其他记录。 问题第一
我的第一个问题是:我是否必须在 Google Cloud DNS 中为不同的网站创建不同的区域?
例如
www.xyz.com 和 www.abc.com(需要新)或两者都可以在同一区域和记录集中进行管理。如果是的话,任何简短的描述都会对我有所帮助。
最初设定
我还有几个问题:
- 如何正确创建子域记录?
我的设置
更新:问题提出
我对 Google Cloud DNS 或网络相关的东西非常陌生。
我设置我的服务器进行托管,现在我想设置我的 DNS 服务器来管理子域和其他记录。 问题第一
我的第一个问题是:我是否必须在 Google Cloud DNS 中为不同的网站创建不同的区域?
例如
www.xyz.com 和 www.abc.com(需要新)或两者都可以在同一区域和记录集中进行管理。如果是的话,任何简短的描述都会对我有所帮助。
最初设定
我还有几个问题:
我的设置
更新:问题提出
您需要为 www.abc.com 和 www.xyz.com 设置单独的区域。
您可以为 www.abc.com 和 m.abc.com 使用相同的区域;除非他们需要单独的服务器,否则您可以为两者使用相同的 CNAME 别名目标。
- 如何正确创建子域记录
所以你想创建子域。按照以下步骤为子域设置 DNS
记录更新将需要一些时间来传播,具体取决于您区域中的 TTL 值。我希望这对你有帮助。如果您需要有关子域的 DNS 记录集的任何帮助,请告诉我。我正在使用上述步骤并在谷歌云平台上成功创建了我的子域。
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