Migrating your DNS configuration to another provider can require a few steps. This article will assist you with this process by showing the steps required to avoid downtime.

Clone the Current DNS Configuration

To locate the current DNS provider of your domain, you can run the following command:

dig NS example.com +short

Checking the DNS authority for a domain using the terminal.

The result will show the current DNS authority. You will need to explore the DNS provider dashboard to locate the records. If you are using Vercel, the DNS configuration can be located here.

After you have successfully located all records associated with your domain, you can either download a "zone file" or copy each record manually to the new provider.

Verify the Records

To verify the records, you can query the DNS configuration served by the future DNS authority:

dig A api.example.com +short @ns1.vercel-dns.com

Checking the DNS configuration of the A record under "api" served by Vercel.

If you were moving your DNS to Cloudflare, for example, the correct command would be:

dig A api.example.com +short @1.1.1.1

Checking the DNS configuration of the A record under "api" served by Cloudflare.

Before proceeding, it is recommended that you check every record that you have moved away from. Dropping the +short flag can also give you more insight into the DNS resolution.

Switch the Nameservers

In your registrar's dashboard (where you bought the domain), you need to change the Nameservers to your new provider. Do notice Nameservers change can take up to 48h to propagate. If you bought the domain from Vercel, you can reach out to Vercel Support for the Nameserver change.


Last Edited on August 14th 2020