Your company implements a split-horizon DNS infrastructure in Azure. You configure the following resources:
- A public Azure DNS zone named contoso.com that contains an A record for www.contoso.com pointing to a public IP address.
- An Azure Private DNS zone named contoso.com that is linked to a virtual network named VNet1. The private zone contains an A record for db.contoso.com pointing to an internal IP address.
- A virtual machine named VM1 deployed in VNet1 that uses default Azure-provided DNS.
VM1 can successfully resolve db.contoso.com. However, when attempting to resolve www.contoso.com, VM1 receives a name resolution error (NXDOMAIN).
What should you do to ensure that VM1 can successfully resolve www.contoso.com?
- Add an A record for www.contoso.com pointing to the public IP address in the private DNS zone.Cevap
- BEnable auto-registration on the virtual network link between VNet1 and the private DNS zone.
- CConfigure a custom DNS server in VNet1 and set a forwarder to the Azure recursive resolver at .
- DCreate a virtual network link between VNet1 and the public Azure DNS zone.
Cevap
Add an A record for www.contoso.com pointing to the public IP address in the private DNS zone.
The correct answer is to manually add the A record for the public endpoint in the private DNS zone. In a split-horizon setup, when a virtual network is linked to an Azure Private DNS zone, Azure DNS acts as the authoritative resolver for the entire zone namespace. If a record is queried and not found in the private zone, Azure DNS returns NXDOMAIN rather than forwarding the query to public DNS servers. Therefore, to resolve the public endpoint internally, its record must be replicated in the private DNS zone.
Adım Adım Çözüm
Anahtar Kavram
Azure Private DNS Zone Authority and Split-Horizon DNS Resolution
Tahmini Süre:2m 0s