QuestionQ183

VerifiedImplement and manage virtual networking

Your company has an Azure subscription named Subscription1.

The company also has two on-premises servers named Server1 and Server2 that run Windows Server 2016. Server1 is configured as a DNS server that has a primary DNS zone named adatum.com. adatum.com contains 1,000 DNS records.

You manage Server1 and Subscription1 from Server2. Server2 has the following tools installed:

  • The DNS Manager console
  • Azure PowerShell
  • Azure CLI

You need to move the adatum.com zone to an Azure DNS zone in Subscription1. The solution must minimize administrative effort.

What should you use?

Explanation

Azure DNS imports standard zone files by using Azure CLI: az network dns zone import -g <resource group> -n adatum.com -f <zone file>. If the zone doesn't already exist, the command creates it, and it creates all the record sets from the file, so a single command migrates all 1,000 records with the least administrative effort. On Windows DNS, zone files are stored by default in %systemroot%\system32\dns on Server1. Import and export cmdlets aren't currently available in Azure PowerShell. DNS Manager is for administering Windows DNS, not for migrating the zone into Azure DNS, and Azure Storage Explorer works with Azure Storage data, not DNS zones.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!