Your company has a public website hosted externally with the domain name `www.contoso.com` and its DNS records managed in a public Azure DNS zone. You plan to configure split-horizon DNS by deploying an Azure Private DNS zone named `contoso.com` to resolve internal hostnames for virtual machines in a virtual network named `VNet1`. You must ensure that virtual machines in `VNet1` can resolve `www.contoso.com` without service interruption, and that new virtual machines deployed to `VNet1` automatically register their hostnames in the private DNS zone. In which sequence should you perform the configuration steps?
- 1Create an Azure Private DNS zone named `contoso.com`.
- 2In the private DNS zone, manually create a CNAME record for `www` that points to the public website's external endpoint.
- 3Create a Virtual Network link from the private DNS zone to `VNet1` with the auto-registration option enabled.
- 4Start the virtual machines in `VNet1` to trigger automatic registration of their hostnames.
Cevap
The correct sequence is: first, create the Private DNS zone; second, manually create the public CNAME record in the private zone; third, link the virtual network with auto-registration enabled; and fourth, start the virtual machines to trigger automatic registration.
First, the Private DNS zone must be created. Second, the public CNAME record must be manually added to the private zone before linking to prevent name resolution outages for the public website. When a private DNS zone matches a public namespace, Azure DNS does not forward queries for missing records to the public zone. Third, the Virtual Network link to the target VNet must be established with auto-registration enabled. Finally, the virtual machines must be started so they can register their hostnames automatically upon network initialization.
Adım Adım Çözüm
Anahtar Kavram
In a split-horizon DNS deployment, Azure DNS resolves all queries for a namespace using the linked private DNS zone. If a record is not found in the private zone, Azure DNS does not fall back to the public DNS zone. Therefore, public records must be recreated in the private zone before linking it to the virtual network to avoid service disruption.