使用 webs.com 在 Azure DNS 中托管子域
Host a subdomain in Azure DNS using webs.com
我的公司使用 webs.com 创建了一个网站,为了托管它,我们使用直接在 webs.com 中注册的域(这里我将其称为 contoso.com)。现在我想创建一个子域(例如子域。contoso.com)以访问托管在 Azure 中的网站,该网站是为我公司提供的一项新服务创建的。
为此,我遵循了 Azure 文档中的官方指南:https://docs.microsoft.com/bs-latn-ba/azure/dns/dns-delegate-domain-azure-dns。简要地说:
- 我在 Azure 中创建了一个名为子域的 DNS 区域。contoso.com;
- 我检索了四个名称服务器的列表;
- 我在 webs.com 中添加了所有四个服务器(这样做我注意到 webs.com 中已经注册了另外两个服务器,但我没有删除它们);
- 我试图验证委托是否有效...
问题是授权验证失败(我无法访问子域。contoso.com 通过浏览器和 nslookup returns "non-existent domain")。
出于这个原因,我尝试在 Azure DNS 区域中添加两条记录:
- 带有虚拟机 IP 地址的 A 记录;
- www.test.contoso.com 子域的 CNAME 记录;
在那之后,我等了几个小时,但什么都没有改变...
如果您想在 Azure DNS 中托管子域 test.contoso.com
,您应该首先在 Azure DNS 中托管您的 public 域 contoso.com
。
To delegate an Azure DNS subdomain, you must first delegate your
public domain to Azure DNS. See Delegate a domain to Azure DNS for
instructions on how to configure your name servers for delegation.
Once your domain is delegated to your Azure DNS zone, you can delegate
your subdomain.
您可以按照 this article 委托 Azure DNS 子域。
- 在 Azure DNS 中委派您的 public 域
contoso.com
。
- 为您的子域创建一个区域
test.contoso.com
。
- 为父区域中的子区域创建名称服务器 (NS) 记录。例如,在您的场景中将 "engineering" 替换为 "test",如下所示。
接下来,您可以在子区域 test.contoso.com
中添加 A 或 CNAME 记录,以将您的网站指向 Azure。
我的公司使用 webs.com 创建了一个网站,为了托管它,我们使用直接在 webs.com 中注册的域(这里我将其称为 contoso.com)。现在我想创建一个子域(例如子域。contoso.com)以访问托管在 Azure 中的网站,该网站是为我公司提供的一项新服务创建的。
为此,我遵循了 Azure 文档中的官方指南:https://docs.microsoft.com/bs-latn-ba/azure/dns/dns-delegate-domain-azure-dns。简要地说:
- 我在 Azure 中创建了一个名为子域的 DNS 区域。contoso.com;
- 我检索了四个名称服务器的列表;
- 我在 webs.com 中添加了所有四个服务器(这样做我注意到 webs.com 中已经注册了另外两个服务器,但我没有删除它们);
- 我试图验证委托是否有效...
问题是授权验证失败(我无法访问子域。contoso.com 通过浏览器和 nslookup returns "non-existent domain")。
出于这个原因,我尝试在 Azure DNS 区域中添加两条记录:
- 带有虚拟机 IP 地址的 A 记录;
- www.test.contoso.com 子域的 CNAME 记录;
在那之后,我等了几个小时,但什么都没有改变...
如果您想在 Azure DNS 中托管子域 test.contoso.com
,您应该首先在 Azure DNS 中托管您的 public 域 contoso.com
。
To delegate an Azure DNS subdomain, you must first delegate your public domain to Azure DNS. See Delegate a domain to Azure DNS for instructions on how to configure your name servers for delegation. Once your domain is delegated to your Azure DNS zone, you can delegate your subdomain.
您可以按照 this article 委托 Azure DNS 子域。
- 在 Azure DNS 中委派您的 public 域
contoso.com
。 - 为您的子域创建一个区域
test.contoso.com
。 - 为父区域中的子区域创建名称服务器 (NS) 记录。例如,在您的场景中将 "engineering" 替换为 "test",如下所示。
接下来,您可以在子区域 test.contoso.com
中添加 A 或 CNAME 记录,以将您的网站指向 Azure。