简体   繁体   English

如何确保私有 DNS 区域正在解析给定的私有 ip?

[英]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 相关联,尚未解决,但我如何确定这是实际问题?

  • I'd rather not have to create a whole VM just to ping it by name.我宁愿不必创建一个完整的 VM 来按名称 ping 它。

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:

  1. Create an Azure VNet with a DNS private zone like private.test.com.创建一个 Azure VNet,其中包含一个 DNS 私有区域,例如 private.test.com。
  2. Create a VM and a VPN gateway on that VNet.在该 VNet 上创建 VM 和 VPN 网关。 Enable VNet integration.启用 VNet 集成。
  3. with my Azure web app service.使用我的 Azure web 应用程序服务。

Workaround 2:解决方法 2:

  1. Deploy new Azure Private DNS Zones in your Azure environment part of private endpoint deployment.在私有端点部署的 Azure 环境中部署新的 Azure 私有 DNS 区域 (Default option) (默认选项)
  2. 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 中使用专用终结点,请使用此选项。
  3. 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.

相关问题 如何找到私有区域中托管的 GCP Cloud DNS 服务器的内部 IP 地址 - How to find the Internal IP Address of GCP Cloud DNS server hosted in Private Zone 什么是 Azure 私有 DNS 区域组? - What is Azure Private DNS Zone Group? 私有 DNS 无法解析 EC2 实例 - Private DNS not resolving for EC2 instance 将私有 DNS 区域添加到 VPC 是否会导致任何问题 - Will adding a Private DNS zone to a VPC cause any issues 从加入域的 VM 解析 Azure Private DNS 区域条目 - Resolve Azure Private DNS zone entry from domain joined VM 标识 Azure 专用 DNS Azure 的区域条目 PostgreSQL 灵活服务器的数据库 - Identify Azure Private DNS Zone entry for Azure Database for PostgreSQL flexible server 如何在没有 AuthContext 的情况下创建私有路由 - How to make a Private Route without AuthContext 使用私有 IP 连接到 Postgres - Connecting to Postgres using private IP 如何使用 Python 和私有 IP 从 GKE 连接到 Cloud SQL - How to connect from GKE to Cloud SQL using Python and Private IP 如何通过私有 IP 将本地服务器连接到 Google Cloud SQL,其中私有 IP 与本地 su.net 冲突? - How to connect on-prem server to Google Cloud SQL over private IP, where private IP conflicts with local subnet?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM