migration of DNS service from GoDaddy to Azure DNS

Sunil Kalekar 20 Reputation points Microsoft Employee
2023-03-14T11:36:05.63+00:00

There is an IT company with more than 100 customers, each customer has a webapp and a sql database hosted on Azure. each webapp is linked to a custom domain / subdomain. Our domain is managed in Godaddy and all the DNS records are set there. We need to move all DNS records to Azure in order to keep control of everything in one place, but we are afraid that it will cause us a downtime or some failure.

Our customers work in different time zone, so anytime we will do it, some of them will be affected (in case of downtime)

The procedure will be as following:

  1. Export all DNS records from Godaddy
  2. Import the DNS records using ARM template
  3. Change Godaddy nameservers to point to Azure nameservers zone

Question as below:

  • How to migrate DNS service from GoDaddy to Azure DNS?

are we going to face any downtime or failure when moving the DNS? and in case of failure, what can we do?

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
592 questions
0 comments No comments
{count} votes

Accepted answer
  1. Luca Lionetti 2,961 Reputation points
    2023-03-14T11:54:20.0166667+00:00

    Hi,

    No, as long as both sets of nameservers have the same records you'll experience no downtime.

    The procedure is ok, you can also test the new name servers pointing a test client directly to them, and when you tested everything, just change the ns record to the new one.

    Cheers

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sunil Kalekar 20 Reputation points Microsoft Employee
    2023-03-14T13:00:03.2433333+00:00

    Requirement:

    Migration of DNS service from GoDaddy to Azure DNS
     
    Plan of Action (POA):
    I understand that you would like to migrate your DNS name servers from GoDaddy to Azure DNS. Currently your DNS delegation is with GoDaddy but you would like to move it between GoDaddy and Azure DNS. Please correct me if my understanding is wrong.
    Azure DNS allows you to host a DNS zone and manage the DNS records for a domain in Azure. In order for DNS queries for a domain to reach Azure DNS, the domain has to be delegated to Azure DNS from the parent domain. Keep in mind Azure DNS isn't the domain registrar.
    Azure DNS delegation overview | Microsoft Learn
     
    If my understanding is correct, then you need to follow the below steps:

    • Obtain your existing DNS zone file from GoDaddy and then import that file into Azure DNS. Importing a zone file creates a new zone in Azure DNS if the zone doesn't already exist. If the zone exist, then the record sets in the zone file will be merged with the existing record sets.

    Import and export a domain zone file - Azure CLI - Azure DNS | Microsoft Learn

    • OR Please download the records from GoDaddy and we can import the zone file to Azure via Azure CLI command

    az network dns zone import -g <resource group> -n <zone name> -f <zone file name>
    Import and export a domain zone file - Azure CLI - Azure DNS | Microsoft Docs
     

    • After successful importing of the records in Azure DNS, retrieve the name servers from your Azure DNS zone and update the parent domain in Go Daddy with the Azure DNS name servers.

    NOTE : When you copy each name server address, make sure you copy the trailing period at the end of the address. The trailing period indicates the end of a fully qualified domain name. Some registrars append the period if the NS name doesn't have it at the end. To be compliant with the DNS RFC, include the trailing period.
    Tutorial: Host your domain in Azure DNS | Microsoft Learn
     

    • Wait for the DNS propagation and verify the delegation.
    • Before you can successfully verify that the DNS delegation is working, you may need to wait at least 10 minutes after you complete the delegation. It can take a while for changes to propagate through the DNS system. The name server migration can take upto 24-48 hours.
    • DNS QnA reference link:

    FAQ - Azure DNS | Microsoft Learn

    0 comments No comments