In DNS architecture, a Zone represents the administrative control of a domain and its sub-domains. When a new domain is created, a corresponding Zone is established, which stores the domain records in a text-based format.
When migrating to a new DNS server, it is essential to transfer all existing DNS records from the old server to the new one. While it is possible to manually add these records, a more reliable and efficient solution is to upload the DNS Zone File, which will import the records automatically.
With VergeCloud's Cloud DNS, you have the capability to migrate all of your domain's DNS records seamlessly by uploading the DNS Zone File through the VergeCloud user panel.
First, you need to obtain your DNS Zone File. Most DNS providers provide options to download this file, and if you're using BIND, the configuration can typically be found in a file named named.conf
.
$ORIGIN
in the Zone File will be disregarded.$INCLUDE
and $GENERATE
will not be processed.
- VergeCloud also allows you to upload a DNS Zone File via API. Below is an example API request that shows how to import the Zone File:
curl --request POST \ --url 'https://api.vergecloud.com/domains/example.com/dns-records/import' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer API_KEY' \ --header 'Content-Type: multipart/form-data' \ --form f_zone_file=@/path/to/txt/file.txt