An administrator needs to migrate the DNS resolution of an active public domain named `contoso.com` from an external DNS hosting provider to Azure DNS. The migration must occur with zero downtime for users accessing the domain's web services.
Which sequence of steps should the administrator perform to complete the migration successfully?
- 1Create the public DNS zone `contoso.com` in Azure DNS.
- 2Recreate all existing active DNS resource records (such as A, CNAME, and MX records) within the Azure DNS zone.
- 3Update the name server (NS) delegation at the domain registrar to point to the name servers assigned by Azure DNS.
- 4Wait for the Time to Live (TTL) duration of the original name server (NS) records to expire.
- 5Delete the DNS zone configuration from the external DNS hosting provider.
Answer
Create the public DNS zone in Azure DNS, recreate all resource records, update the name server delegation at the registrar to Azure DNS name servers, wait for the TTL of the original NS records to expire, and finally delete the DNS zone on the external provider.
The correct order follows a zero-downtime migration strategy: first, instantiate the public DNS zone in Azure DNS; second, populate it with all necessary resource records to ensure that the zone is ready to handle queries; third, point the domain registrar's NS records to the new Azure DNS name servers to redirect traffic; fourth, wait for the duration of the original NS TTL to expire so that no cached queries continue to hit the old servers; and fifth, safely decommission the old DNS provider zone once all traffic has moved.
Step-by-Step Solution
Key Concept
Azure DNS Public Zone migration and delegation flow to prevent downtime.