简体   繁体   English

从 GoDaddy 创建子域并指向 GCP 实例

[英]Create a subdomain from GoDaddy and point to GCP instance

I have a domain registered under the Godaddy and now I want to create a subdomain which points to GCP instance (static address).我在 Godaddy 下注册了一个域,现在我想创建一个指向 GCP 实例(静态地址)的子域。

So when did a R&D, few are saying that we need to create a zone and then points the provided Namespace address to the Godaddy ?

or或者

Just go to Manage DNS in Godaddy -->add -->A type (ipv4) and then points to subdomain -->with destiny IP address

Which way is the appropriate way ?哪种方式是合适的方式? can anybody help in this ?有人可以帮忙吗?

There is no point of creating a new zone to point a subdomain.创建一个新区域来指向一个子域是没有意义的。 New Zone is like a new Domain.新区就像一个新域。 There could be 2 cases where you want to have a new zone -可能有 2 种情况您想要一个新区域 -

  • Purchasing a new Domain购买新域名
  • Using a subdomain of a domain which is purchased on some other DNS Provider.使用在某些其他 DNS 提供商处购买的域的子域。

In your case, Just add A Record -在您的情况下,只需添加A Record -

  1. Go to GoDaddy.去 GoDaddy。
  2. Select your Domain.选择您的域。
  3. Add a new Record.添加新记录。
  4. In Name (Host) Enter name of subdomain.在名称(主机)中输入子域的名称。
  5. Select Record Type A.选择记录类型 A。
  6. In Value add IPv4 Address of GCP instance.在值中添加 GCP 实例的 IPv4 地址。
  7. Leave everything else default and save.将其他所有内容保留为默认值并保存。

It will reflect it's changes within next 48hrs (Usually takes few minutes)它将在接下来的 48 小时内反映它的变化(通常需要几分钟)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM