azure - 如何刷新应用服务配置的 DNS 服务器?

标签 azure azure-web-app-service azure-app-service-plans

我有一个连接到 VNET 的应用服务,该 VNET 通过 VPN 连接到我们的本地网络。 VNET 使用我们的两个本地 DNS 服务器来解析内部主机名。我必须更新其中一个 DNS IP 地址以指向新服务器,因为它开始变得不稳定,但我不确定应用服务是否已进行此更改。

在 Kudu 控制台中,应用程序服务的环境变量显示 WEBSITE_DNS_ALT_SERVER = <TheOldBadIpAddress> 。当我在门户中查看 VNET 集成设置时,会显示正确的 DNS 条目。

为了更新环境变量,我尝试过:

  • 重新启动应用服务
  • 在门户中断开/重新连接 VNET 集成。

这些都没有任何效果。如何让我的应用服务更新其配置的 DNS 服务器?

最佳答案

Neither of these have any effect. How can I get my App Service to update its configured DNS servers?

Connect to Azure VNet提到Managing the VNET Integrations如下:

Along with the certificates we get the DNS configuration, routes and other similar things that describe the network. If those certificates or network information is changed then you will need to click "Sync Network".

NOTE: When you click "Sync Network" then you will cause a brief outage in connectivity between your app and your VNET. While your app will not be restarted the loss of connectivity could cause your site to not function properly.

关于azure - 如何刷新应用服务配置的 DNS 服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45643493/

相关文章:

azure - 如何整合来自不同地理位置数据库Azure的数据

python - 使用 sas 连接时,Azure Blob 存储会出现身份验证错误(没有签名标识符的访问时间窗口不能超过 1 小时)

azure - 如何为一个 Azure 网站保留实例配置多个主机 header

azure - 在 Azure 中将 Kudu 与多实例应用服务结合使用

azure - 如果我对 Azure Web 作业实现监控,会对 Azure 应用服务性能产生负面影响吗?

azure - 通过 ARM 模板将现有混合连接添加到 Azure 应用程序服务计划

.net - Azure Pipelines 构建错误 nuget 命令失败,退出代码(1) 和错误(错误 NU5012 : Unable to find. ..确保项目已构建

azure - 是否可以从 Azure WebJobs QueueInput 项生成唯一的 BlobOutput 名称?

azure - 如果 Azure 应用服务 CPU 暂时达到最大,会出现什么情况?

azure - 获取存储在 Windows Azure 中托管的网站上的图像