You manage an Azure subscription that contains a private DNS zone named corp.internal.
You have two virtual networks named VNet-Prod and VNet-Dev that are connected via virtual network peering.
The corp.internal private DNS zone is linked to VNet-Prod with auto-registration enabled. Several virtual machines in VNet-Prod have automatically registered their DNS records in the zone.
You deploy a new virtual machine named VM-Dev1 in VNet-Dev.
You discover that VM-Dev1 cannot resolve the DNS names of the virtual machines in VNet-Prod using the corp.internal suffix.
You need to ensure that VM-Dev1 can resolve the DNS names in corp.internal.
What should you do?
- Create a virtual network link from the corp.internal private DNS zone to VNet-Dev.Answer
- BEnable gateway transit on the virtual network peering between VNet-Prod and VNet-Dev.
- CEnable auto-registration on the virtual network peering connection from VNet-Prod to VNet-Dev.
- DConfigure the DNS server settings of VNet-Dev to point to the private IP address of the virtual network gateway in VNet-Prod.
Answer
Create a virtual network link from the corp.internal private DNS zone to VNet-Dev.
Creating a virtual network link from the corp.internal private DNS zone to VNet-Dev is required because Azure Private DNS zones require an explicit link to any virtual network that needs to resolve its DNS records. Peering two virtual networks enables IP routing between them but does not automatically extend Private DNS zone resolution capabilities to the peered network.
Step-by-Step Solution
Key Concept
Azure Private DNS Zone Virtual Network Links