0

I am using Azure App Service to host my NodeExpress application, I am right now stuck at a very strange requirement.

I have 2 different azure app services. 1) myApp 2) sampleApp

I have a domain pointed at myApp. (Added hostname www.myapp.com) now I want to delete myApp and shift my hostname (www.myapp.com) to sampleApp.

now my Question is,

will it change my IP Address? (This I think it would because I haven't bought any static IP)

if my app service pointing IP is changed, will I have to do anything with the domain DNS manager to move www.myapp.com in hostnames of sample app?

I don't have access to DNS Manager because client has it. I have to tell client to add CNAME to verify domain ownership. I want to point this domain to different app service without adding delay of asking my client to change its cname to verify domain ownership.

4

2 回答 2

1

通过使用验证记录,您实际上可以在不停机的情况下迁移域名。只需创建记录:

awverify.www.mydomain.com CNAME mynewnodeapp1.azurewebsites.net

这将使您能够www.domain.com在 azure 中将主机名添加到 sampleApp(并添加 SSL 绑定)。

来源:https ://docs.microsoft.com/en-us/azure/app-service/manage-custom-dns-migrate-domain

于 2019-03-26T08:52:11.377 回答
0

在将其添加到 Azure 应用服务之前,您必须在 DNS 服务器中从您的 Web 应用程序注册新的 CNAME。现在你有这样的东西:

www.mydomain.com CNAME mynodeapp1.azurewebsites.net

首先,将其更改为您的新申请地址:

www.mydomain.com CNAME mynewnodeapp1.azurewebsites.net

然后将自定义域添加到您的新 Web 应用程序。

应用服务确实为您提供了一个公共 IP 地址,但不能保证保持不变,尽管它不太可能改变。说,只要你继续使用CNAME,你应该没有任何问题。如果删除原始应用并使用相同的 Azure FQDN 重新创建,则无需更改客户 DNS 设置的任何内容,在这种情况下,Azure 将能够成功验证域。

于 2017-05-23T00:37:42.353 回答