Move adatum.com DNS Zone to Azure Subscription 1

Move adatum.com DNS Zone to Azure Subscription 1

Question

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 2.0

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

What should you use?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B

Azure DNS supports importing and exporting zone files by using the Azure command-line interface (CLI). Zone file import is not currently supported via Azure

PowerShell or the Azure portal.

https://docs.microsoft.com/en-us/azure/dns/dns-import-export

To move the adatum.com zone from on-premises server Server1 to Azure Subscription1, we need to perform the following steps:

  1. Export the DNS Zone file from Server1: We can use the DNS Manager console installed on Server2 to export the adatum.com DNS zone file from Server1. To do this, follow these steps:

    • Open the DNS Manager console on Server2.
    • Right-click the adatum.com zone, select "Export List", and choose a location to save the zone file.
  2. Create an Azure DNS Zone in Subscription1: To create an Azure DNS Zone in Subscription1, we can use either Azure PowerShell or Azure CLI. Both tools provide cmdlets or commands to create Azure DNS zones. In this case, we will use Azure PowerShell. To create an Azure DNS Zone, follow these steps:

    • Open Azure PowerShell on Server2.
    • Connect to Subscription1 using the Connect-AzAccount cmdlet.
    • Create a new resource group using the New-AzResourceGroup cmdlet.
    • Create a new Azure DNS Zone using the New-AzDnsZone cmdlet.
  3. Import the DNS Zone file to Azure DNS Zone: Once we have created the Azure DNS Zone, we can import the adatum.com zone file to the Azure DNS Zone. To do this, we can use the Azure PowerShell cmdlet "Set-AzDnsRecordSet" to add DNS records to the new zone. We can import the DNS records from the zone file using a loop in PowerShell. To import the DNS zone file, follow these steps:

    • Open Azure PowerShell on Server2.
    • Connect to Subscription1 using the Connect-AzAccount cmdlet.
    • Import the zone file to PowerShell using the Import-Csv cmdlet.
    • Loop through each record in the CSV file using a "ForEach" loop.
    • Create a new DNS record set for each record using the New-AzDnsRecordSet cmdlet.
    • Add the DNS record to the new record set using the Add-AzDnsRecordConfig cmdlet.
    • Save the record set using the Set-AzDnsRecordSet cmdlet.

Therefore, the best tool to use for this scenario is Azure PowerShell, as it provides cmdlets for creating Azure DNS Zones and importing DNS records. Option A is the correct answer.