Azure 私有(private) DNS 区域链接到 VNet

标签 azure dns azure-private-link

我们有一个中心辐射型拓扑。在 Hub 中,我们部署了一个自定义 DNS 虚拟机。 我们正在使用专用终结点并在中心 VNet 中创建专用 DNS 区域。我们相应地创建了转发规则。专用 DNS 区域与中心 VNet 链接。

我们还有与中心 VNet 对等的分支 VNet。我们是否还需要从私有(private) DNS 区域到分支 VNet 的链接?

注意:私有(private)端点驻留在 Spoke VNet 中。

Azure 文档对于这个特定主题不是很清楚。 我们在一处读到以下内容:将私有(private) DNS 区域与需要解析您的私有(private)端点 DNS 名称的所有虚拟网络链接起来。 https://learn.microsoft.com/en-us/azure/architecture/guide/networking/private-link-hub-spoke-network

但是在另一个地方没有提到这一点。 https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns#virtual-network-and-on-premises-workloads-using-a-dns-forwarder

最佳答案

我创建了中心辐射型 vnet 并进行对等互连,如下所示:

enter image description here

enter image description here

We also have Spoke VNets that are peered with the Hub VNet. Do we also need a link from the Private DNS Zone to the Spoke VNets?

是的,如果您想从分支 VNet 解析私有(private)端点 DNS 名称,您还需要将私有(private) DNS 区域与分支 VNet 链接。分支 VNet 与中心 VNet 对等互连,但它们不会自动与私有(private) DNS 区域链接

在私有(private) DNS 区域链接辐条 vnet 中,如下所示,确保启用自动注册,如下所示:

enter image description hereenter image description here

第二个MsDoc您指的是同样的说法。

与同一专用终结点关联的对等虚拟网络。将新的虚拟网络链接添加到所有对等虚拟网络的专用 DNS 区域。

If you're using a private endpoint in a hub-and-spoke model from a different subscription or even within the same subscription, link the same private DNS zones to all spokes and hub virtual networks that contain clients that need DNS resolution from the zones.

关于Azure 私有(private) DNS 区域链接到 VNet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/77157443/

相关文章:

amazon-web-services - 同一域上的两个不同 AWS 应用程序具有不同的子文件夹

ssl - 如何处理两个域并将所有内容(非 www 和 www)转发到一个 Heroku 应用程序?

Azure 专用端点

c# - 如何识别 Cosmos db 中记录级别的漂移?

azure - Azure 上的 Terraform Snowpipe 集成时出现错误

azure - Microsoft BI 架构 : Power BI, 分页报表、分析服务和云 - 最佳解决方案是什么?

Azure 专用链接 - DNS 区域设置

azure - 使用 Terraform 实现 Azure 应用程序安全组

ubuntu - EC2 Ubuntu : unable to access site from browser but able to access from EC2 ubuntu terminal

Azure Key Vault 不允许在专用终结点连接中从 azure 门户添加 secret