There are three methods you can use to export DNS zone files from the NS1 platform:
Option A: Enabling outgoing zone transfers via AXFR (Recommended for exporting BIND-compatible zone file)
Option B: Using the NS1 API to view a zone's configuration details
Option C: Using a DNS summary script provided by NS1 Customer Support
Zone files exported from IBM NS1 Connect platform include zone-level data and short answers for records within the zone. Exported files do not contain answer metadata or Filter Chain configurations.
This method is recommended if you require a BIND-compatible zone file for use with other DNS providers. Refer to Enabling outgoing zone transfers for instructions.
Run the following API command to return all configuration details for the specified zone. Note that you must enter a valid NS1 API key that has the "View zones" permission enabled. Also, note that the response is not BIND-compatible and is not likely to be supported by third-party DNS providers.
curl -X GET -H "X-NSONE-Key: $NSONE_API_KEY" https://api.nsone.net/v1/zones/<zoneFQDN>
where <zoneFQDN> refers to the unique name of the zone. Likely, this is the same as the zone FQDN unless a custom zone name was applied or the zone was associated with a DNS view during zone creation.
If requested, NS1 can provide a script for you to run that produces a CSV file output of all NS1 zones and records. The script calls the API and formats the output into this human-readable format. To request this script, submit a support ticket.