Question

Difficulty: EasyConfigure Azure DNS Private and Public Zones

An administrator creates an Azure Private DNS zone named private.contoso.com. The administrator configures a virtual network link from private.contoso.com to a virtual network named VNet1 with auto-registration enabled. The administrator then configures a second virtual network link from private.contoso.com to a virtual network named VNet2 with auto-registration disabled. How does this configuration affect the name resolution and registration of the virtual machines deployed in VNet2?

  1. They can resolve DNS records in private.contoso.com, but their own hostnames are not automatically registered.Answer
  2. B
    They cannot resolve DNS records in private.contoso.com, and their own hostnames are not automatically registered.
  3. C
    They cannot resolve DNS records in private.contoso.com, but their own hostnames are automatically registered.
  4. D
    They can resolve DNS records in private.contoso.com only if virtual network peering is established between VNet1 and VNet2.

Answer

Virtual machines in the second virtual network can resolve DNS records in the private DNS zone, but their own hostnames will not be automatically registered.
Linking a virtual network to a Private DNS Zone enables name resolution for virtual machines in that virtual network. Auto-registration is an optional setting that allows Azure DNS to dynamically create and update A records for virtual machines in the linked virtual network. Since the link for the second virtual network does not have auto-registration enabled, its virtual machines can resolve existing records but will not have their hostnames registered automatically.

Step-by-Step Solution

1
Determine the impact of the virtual network link on name resolution.
Virtual machines in VNet2 can resolve records present in the private DNS zone.
Creating a virtual network link enables resources within that virtual network to query and resolve names in the linked Private DNS Zone.
2
Analyze the impact of disabling the auto-registration option on the link.
Hostnames of virtual machines in VNet2 are not automatically registered in the DNS zone.
Auto-registration is an optional capability of the virtual network link that must be explicitly enabled to allow automatic creation of DNS records for VM private IPs.
3
Combine the resolution and registration behaviors to find the correct answer.
Resolution works; registration does not.
Name resolution is active because the VNet is linked, but registration is inactive because the auto-registration checkbox is cleared.

Key Concept

Azure Private DNS Zone virtual network links and the role of the auto-registration feature.
Rate this question