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.
To locate the current DNS provider of your domain, you can run the following command:
dig NS example.com +short
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.
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
If you were moving your DNS to Cloudflare, for example, the correct command would be:
dig A api.example.com +short @220.127.116.11
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.
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.