[英]How to make sure a Private DNS zone is resolving a given private ip?
The use case scenario here is that the private DNS resolves an internal IP acting as the default gateway of an API Manager - APIM.这里的用例场景是私有 DNS 解析内部 IP 作为 API Manager - APIM 的默认网关。
In front of APIM, there is an Application Gateway with a backend pool targeting the private DNS.在 APIM 前面,有一个应用程序网关和一个针对私有 DNS 的后端池。
I can see that the backend health status is unknown
, and it might be related to the FQDN - associated with an internal Ip, not being resolved, but how can I make sure that it is the actual problem?我可以看到后端健康状态是unknown
的,它可能与 FQDN 有关 - 与内部 Ip 相关联,尚未解决,但我如何确定这是实际问题?
You can try either of the following ways to make sure Private DNS zone is resolving a given private IP.您可以尝试以下任一方法来确保私有 DNS 区域正在解析给定的私有 IP。
Workaround 1:解决方法 1:
- Create an Azure VNet with a DNS private zone like private.test.com.创建一个 Azure VNet,其中包含一个 DNS 私有区域,例如 private.test.com。
- Create a VM and a VPN gateway on that VNet.在该 VNet 上创建 VM 和 VPN 网关。 Enable VNet integration.启用 VNet 集成。
- with my Azure web app service.使用我的 Azure web 应用程序服务。
Workaround 2:解决方法 2:
- Deploy new Azure Private DNS Zones in your Azure environment part of private endpoint deployment.在私有端点部署的 Azure 环境中部署新的 Azure 私有 DNS 区域。 (Default option) (默认选项)
- Use existing Azure Private DNS Zones . 使用现有的 Azure 私有 DNS 区域。 Use this option if you using a private endpoint in a hub-and-spoke model from a different subscription or even within the same subscription.如果您在来自不同订阅甚至同一订阅的中心辐射型 model 中使用专用终结点,请使用此选项。
- Use your own DNS Servers if you do not use DNS forwarders and instead you manage A records directly in your on-premises DNS servers.如果您不使用 DNS 转发器而是直接在本地 DNS 服务器中管理 A 记录,请使用您自己的DNS 服务器。
Reference: Azure DNS zone record not resolving to specified IP from App service to Virtual Machine - Stack Overflow and Configure DNS Name Resolution for private endpoints - Azure Purview |参考: Azure DNS 区域记录未解析为从应用服务到虚拟机的指定 IP - 堆栈溢出和配置 DNS 专用端点的名称解析 - Azure Purview | Microsoft Docs 微软文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.