gpt4 book ai didi

azure - 使用 webs.com 在 Azure DNS 中托 pipe 域

转载 作者:行者123 更新时间:2023-12-03 05:41:51 25 4
gpt4 key购买 nike

我的公司使用 webs.com 创建了一个网站,为了托管该网站,我们使用直接在 webs.com 中注册的域(这里我将其称为 contoso.com)。现在,我想创建一个子域(例如 subdomain.contoso.com)来访问 Azure 中托管的网站,该网站是为我公司提供的新服务创建的。

为此,我遵循了 Azure 文档中的官方指南:https://learn.microsoft.com/bs-latn-ba/azure/dns/dns-delegate-domain-azure-dns 。简而言之:

  • 我在 Azure 中创建了一个名为 subdomain.contoso.com 的 DNS 区域;
  • 我检索了四个名称服务器的列表;
  • 我在 webs.com 中添加了所有四个服务器(这样做时我注意到 webs.com 中已经注册了另外两个服务器,但我没有删除它们);
  • 我尝试验证委托(delegate)是否有效...

问题是委托(delegate)验证失败(我无法通过浏览器访问 subdomain.contoso.com,并且 nslookup 返回“不存在的域”)。

因此,我尝试在 Azure DNS 区域中添加两条记录:

  • 包含虚拟机 IP 地址的 A 记录;
  • www.test.contoso.com 子域的 CNAME 记录;

之后,我等了几个小时,但没有任何变化......

最佳答案

当您想要在 Azure DNS 中托 pipe 域 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 子域。

  1. 在 Azure DNS 中委托(delegate)您的公共(public)域 contoso.com
  2. 为您的子域 test.contoso.com 创建区域。
  3. 为父区域中的子区域创建名称服务器 (NS) 记录。例如,在您的场景中将“工程”替换为“测试”,如下所示。 enter image description here

接下来,您可以在子区域 test.contoso.com 中添加 A 或 CNAME 记录,以将您的网站指向 Azure。

关于azure - 使用 webs.com 在 Azure DNS 中托 pipe 域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58164346/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com