1

我目前有一个域名,我们称之为 contoso.com,其注册商是 Go Daddy,DNS 目前由主网站所在的超级 WordPress 提供商管理(即 Go Daddy 点的域名)到 Super WordPress Provider 的名称服务器)。我想在 Azure 上创建一个位于“api.contoso.com”的 API,但同时也将我的 WP 站点保留在主域的 Super WordPress Provider 上。有没有办法在 Azure 上只设置 api.contoso.com 而保持主域不变?

我尝试在 Super WordPress Provider 为 api.contoso.com 创建一个“A”记录,但它希望我输入一个 IP 地址,但是当我在 Azure 中为 api.contoso.com 创建一个 DNS 区域时,它似乎没有提供IP 地址。

4

2 回答 2

3

如果您已经在其他地方拥有 DNS,则不需要使用 Azure 的 DNS。以 Azure 应用服务为例,只需使用您当前的 DNS 提供程序,使用 CNAME映射api.contoso.com到服务 URL ( ),如此处所述your-azure-app.azurewebsites.net

于 2020-08-08T15:28:08.993 回答
1

If you need the IP address of the App Service, you should find the IP address under Your App Service> Custom domains: click here to see image

You can set the A record, however you will also set the TXT as follows:

Host :ASUID.SUBDOMAIN Value: Verification ID

Keep in mind that it is recommended to use a CNAME

于 2020-08-09T05:17:08.717 回答