## Export DNS Records `client.dns.records.export(RecordExportParamsparams, RequestOptionsoptions?): RecordExportResponse` **get** `/zones/{zone_id}/dns_records/export` You can export your [BIND config](https://en.wikipedia.org/wiki/Zone_file "Zone file") through this endpoint. See [the documentation](https://developers.cloudflare.com/dns/manage-dns-records/how-to/import-and-export/ "Import and export records") for more information. ### Parameters - `params: RecordExportParams` - `zone_id: string` Identifier. ### Returns - `RecordExportResponse = string` Exported BIND zone file. ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const response = await client.dns.records.export({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }); console.log(response); ```