> ## Documentation Index
> Fetch the complete documentation index at: https://gcore.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Import and export records

Use import and export to gain more control over DNS records and make domain migration easier.

1\. Navigate to the [All zones](https://portal.gcore.com/dns/zones) tab and select the domain zone into which you want to import the records.

<Frame>
  <img src="https://mintcdn.com/gcore/vIBGEn0nFQSXGTIx/images/docs/dns/dns-records/import-and-export-records/import-and-export-records-image1.png?fit=max&auto=format&n=vIBGEn0nFQSXGTIx&q=85&s=8d8d96b433526f1e98450685b18eebcd" alt="All zones" width="775" height="75" data-path="images/docs/dns/dns-records/import-and-export-records/import-and-export-records-image1.png" />
</Frame>

2\. Click **Export records** or **Import records**, depending on your task, and follow the appropriate instructions below.

<Frame>
  <img src="https://mintcdn.com/gcore/uiRa_jFs2CEr69p9/images/docs/dns/dns-records/import-and-export-records/import-export-10.png?fit=max&auto=format&n=uiRa_jFs2CEr69p9&q=85&s=05d3153ffe7712b053625735aaf83b36" alt="Import or export records" width="5892" height="1100" data-path="images/docs/dns/dns-records/import-and-export-records/import-export-10.png" />
</Frame>

<Tabs>
  <Tab title="Export">
    After clicking **Export records**, the BIND zone file will be downloaded to your PC as a text file with the .zone extension, e.g., `sample-test.com.zone`.

    The downloaded file will contain information about the zone, including the domain name, TTL, RRset, time intervals (refresh, update, and expiry), and the authoritative NS server. For example:

    ```sh theme={null}
    $ORIGIN test.dnsexample.com.
    $TTL 300
    @ IN SOA ns1.gcorelabs.net. support.gcore.com. (
      1690969313 ; serial number
      5400 ; refresh
      3600 ; update retry
      1209600 ; expiry
      300 ; minimum
    )
    $TTL 3600
    @ IN NS ns1.gcorelabs.net.
    @ IN NS ns2.gcdn.services.
    $TTL 600
    @ IN A 1.2.3.4
    @ IN A 4.5.6.7
    * IN CNAME sample.domains.com.
    * IN CNAME sample-2.domains.com.
    ```
  </Tab>

  <Tab title="Import">
    After clicking **Import records**, a new pop-up will appear. Specify the content of the BIND zone file for your domain or click **Upload zone file** to import records from the file with the .zone extension. Then, click **Import**.

    <Frame>
      <img src="https://mintcdn.com/gcore/uiRa_jFs2CEr69p9/images/docs/dns/dns-records/import-and-export-records/import-export-20.png?fit=max&auto=format&n=uiRa_jFs2CEr69p9&q=85&s=dd25069e1e0ae372d77e87f8c6a29a8a" alt="Import records" width="2676" height="2800" data-path="images/docs/dns/dns-records/import-and-export-records/import-export-20.png" />
    </Frame>
  </Tab>
</Tabs>
