> ## Documentation Index
> Fetch the complete documentation index at: https://docs.preprod.world/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.

<Steps>
  <Step title="Open the domain zone">
    In the [Gcore Customer Portal](https://portal.gcore.com), navigate to **Managed DNS** → [**All zones**](https://portal.gcore.com/dns/zones).

    Click the domain zone to open it.

    <Frame>
      <img src="https://mintcdn.com/gcore-docs/xkpzeHgKKKD4ZA-j/images/docs/dns/dns-records/import-and-export-records/import-and-export-records-image1.png?fit=max&auto=format&n=xkpzeHgKKKD4ZA-j&q=85&s=bac9c001cd4af52ce7710e0cca76a398" alt="All zones list" width="1333" height="460" data-path="images/docs/dns/dns-records/import-and-export-records/import-and-export-records-image1.png" />
    </Frame>
  </Step>

  <Step title="Click Export records or Import records">
    <Frame>
      <img src="https://mintcdn.com/gcore-docs/xkpzeHgKKKD4ZA-j/images/docs/dns/dns-records/import-and-export-records/import-and-export-records-image2.png?fit=max&auto=format&n=xkpzeHgKKKD4ZA-j&q=85&s=f6a861d508df40482abcbc63f8415a38" alt="Zone records page with Export records and Import records buttons" width="1024" height="540" data-path="images/docs/dns/dns-records/import-and-export-records/import-and-export-records-image2.png" />
    </Frame>

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

        The downloaded file includes domain name, TTL, RRsets, time intervals (refresh, update, and expiry), and the authoritative NS server:

        ```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 dialog will appear. Specify the content of the BIND zone file for the domain or click **Upload zone file** to import records from a file with the .zone extension. Then, click **Import**.

        <Frame>
          <img src="https://mintcdn.com/gcore-docs/xkpzeHgKKKD4ZA-j/images/docs/dns/dns-records/import-and-export-records/import-and-export-records-image3.png?fit=max&auto=format&n=xkpzeHgKKKD4ZA-j&q=85&s=67f807de08355ea95e7c4fa57bf35adc" alt="Import records dialog with zone file content field and Upload zone file button" width="809" height="796" data-path="images/docs/dns/dns-records/import-and-export-records/import-and-export-records-image3.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Step>
</Steps>
