How do you migrate DNS from on-premises server to Azure DNS?

Experience Level: Junior
Tags: Azure Cloud Azure DNS

Answer

  • Export the existing DNS settings to DNS zone files
  • Import DNS zone files to Azure DNS

A DNS zone file is a text file that contains details of every Domain Name System (DNS) record in the zone. It follows a standard format, making it suitable for transferring DNS records between DNS systems. Using a zone file is a quick, reliable, and convenient way to transfer a DNS zone into or out of Azure DNS.

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.

The Azure CLI is a cross-platform command-line tool used for managing Azure services. It is available for the Windows, Mac, and Linux platforms from the Azure downloads page. Cross-platform support is important for importing and exporting zone files, because the most common name server software, BIND, typically runs on Linux.

Related Azure Cloud job interview questions
AZ-104 Microsoft Azure Administrator Preparation
AZ-104 Microsoft Azure Administrator Preparation

Are you learning Azure Cloud? Try our test we designed to help you progress faster.

Test yourself
Azure DNS
Azure DNS

Are you learning Azure Cloud? Try our test we designed to help you progress faster.

Test yourself