Azure 专用 DNS 常见问题解答Azure Private DNS FAQ

下面是有关 Azure 专用 DNS 的常见问题。The following are frequently asked questions about Azure private DNS.

Azure DNS 是否支持专用域?Does Azure DNS support private domains?

使用 Azure 专用 DNS 区域功能支持专用域。Private domains are supported using the Azure Private DNS zones feature. 专用 DNS 区域只能从指定的虚拟网络中进行解析。Private DNS zones are resolvable only from within specified virtual networks. 有关详细信息,请参阅概述For more information, see the overview.

有关 Azure 中其他内部 DNS 选项的信息,请参阅 VM 和角色实例的名称解析For information on other internal DNS options in Azure, see Name resolution for VMs and role instances.

Azure 专用 DNS 区域是否可跨 Azure 区域工作?Will Azure Private DNS zones work across Azure regions?

是的。Yes. 专用区域支持在跨 Azure 区域的虚拟网络之间进行 DNS 解析。Private Zones is supported for DNS resolution between virtual networks across Azure regions. 即使未显式建立虚拟网络对等互连,专用区域也能正常工作。Private Zones works even without explicitly peering the virtual networks. 所有虚拟网络都必须链接到专用 DNS 区域。All the virtual networks must be linked to the private DNS zone.

专用区域是否需要在虚拟网络与 Internet 之间建立连接?Is connectivity to the Internet from virtual networks required for private zones?

不是。No. 专用区域配合虚拟网络工作。Private zones work along with virtual networks. 你可在虚拟网络内部或跨虚拟网络管理虚拟机的域或其他资源。You use them to manage domains for virtual machines or other resources within and across virtual networks. 无需建立 Internet 连接即可进行名称解析。Internet connectivity isn't required for name resolution.

是否可将同一专用区域用于解析多个虚拟网络?Can the same private zone be used for several virtual networks for resolution?

是的。Yes. 可以将专用 DNS 区域链接到成千上万个虚拟网络。You can link a private DNS zone with thousands of virtual networks. 有关详细信息,请参阅 Azure DNS 限制For more information, see Azure DNS Limits

删除虚拟机后,是否会自动删除在专用区域中自动注册的虚拟机 DNS 记录?Will the automatically registered virtual machine DNS records in a private zone be automatically deleted when you delete the virtual machine?

是的。Yes. 如果在已启用自动注册的情况下删除链接的虚拟网络中的虚拟机,则会自动删除已注册的记录。If you delete a virtual machine within a linked virtual network with autoregistration enabled, the registered records are automatically deleted.

是否可以手动删除从链接的虚拟网络的专用区域中自动注册的虚拟机记录?Can an automatically registered virtual machine record in a private zone from a linked virtual network be deleted manually?

是的。Yes. 可以在区域中使用手动创建的 DNS 记录来覆盖此类自动注册的 DNS 记录。You can overwrite the automatically registered DNS records with a manually created DNS record in the zone. 以下问答部分解答了此主题。The following question and answer address this topic.

如果尝试将新的 DNS 记录手动创建到专用区域,且该专有区域与链接的虚拟网络中的自动注册的现有虚拟机具有相同主机名时,会发生什么情况?What happens when I try to manually create a new DNS record into a private zone that has the same hostname as an automatically registered existing virtual machine in a linked virtual network?

如果尝试将新的 DNS 记录手动创建到专用区域,且该专有区域与链接的虚拟网络中的自动注册的现有虚拟机具有相同主机名,You try to manually create a new DNS record into a private zone that has the same hostname as an existing, automatically registered virtual machine in a linked virtual network. 则新的 DNS 记录会覆盖自动注册的虚拟机记录。When you do, the new DNS record overwrites the automatically registered virtual machine record. 如果再次尝试从区域中删除这条手动创建的 DNS 记录,则删除操作将会成功。If you try to delete this manually created DNS record from the zone again, the delete succeeds. 只要虚拟机仍然存在并且其上已附加专用 IP,就会再次发生自动注册。The automatic registration happens again as long as the virtual machine still exists and has a private IP attached to it. DNS 记录将在区域中自动重新创建。The DNS record is re-created automatically in the zone.

是的。Yes. 若要从专用区域中取消已链接虚拟网络的链接,请更新 DNS 区域以删除关联的虚拟网络链接。To unlink a linked virtual network from a private zone, you update the DNS zone to remove the associated virtual network link. 在此过程中,自动注册的虚拟机记录将从区域中删除。In this process, virtual machine records that were automatically registered are removed from the zone.

不是。No. 如果删除链接的虚拟网络而不先将其从专用区域中取消链接,则删除操作将会成功,并且会自动清除对 DNS 区域的链接。When you delete a linked virtual network without unlinking it from a private zone first, your deletion operation succeeds and the links to the DNS zone are automatically cleared.

是否即使专用区域(例如 private.contoso.com)已链接到虚拟网络,也仍可使用默认 FQDN (internal.chinacloudapp.cn) 进行 DNS 解析?Will DNS resolution by using the default FQDN (internal.chinacloudapp.cn) still work even when a private zone (for example, private.contoso.com) is linked to a virtual network?

是的。Yes. 专用区域不会替换默认的 Azure 提供的 internal.chinacloudapp.cn 区域。Private Zones don't replace the default Azure-provided internal.chinacloudapp.cn zone. 无论是依赖于 Azure 提供的 internal.chinacloudapp.cn 还是依赖于自己的专用区域,都请使用要解析的区域的 FQDN。Whether you rely on the Azure-provided internal.chinacloudapp.cn or on your own private zone, use the FQDN of the zone you want to resolve against.

链接的虚拟网络中虚拟机上的 DNS 后缀是否会更改为专用区域的 DNS 后缀?Will the DNS suffix on virtual machines within a linked virtual network be changed to that of the private zone?

不是。No. 链接的虚拟网络中虚拟机的 DNS 后缀将保留为 Azure 提供的默认后缀(“*.internal.chinacloudapp.cn”)。The DNS suffix on the virtual machines in your linked virtual network stays as the default Azure-provided suffix ("*.internal.chinacloudapp.cn"). 可以手动将虚拟机上的此 DNS 后缀更改为专用区域的 DNS 后缀。You can manually change this DNS suffix on your virtual machines to that of the private zone. 有关如何更改此后缀的指导,请参阅 使用动态 DNS 在自己的 DNS 服务器中注册主机名For guidance on how to change this suffix refer to Use dynamic DNS to register hostnames in your own DNS server

Azure DNS 专用区域有哪些使用限制?What are the usage limits for Azure DNS Private zones?

请参阅 Azure DNS 限制,详细了解 Azure DNS 专用区域的使用限制。Refer to Azure DNS limits for details on the usage limits for Azure DNS private zones.

后续步骤Next steps