如何刷新为应用服务配置的 DNS 服务器?
How do you refresh the configured DNS server for an App Service?
我有一个连接到 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 mentioned about 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.
我有一个连接到 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 mentioned about 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.