Export DNS zones in zone file format

This function returns one or more DNS zones, in RFC-1035 format.

Important:

When you disable the DNS role, the system disables this function.

Authorizations:
query Parameters
zone
required
Array of strings <domain>
Example: zone=example.com&zone=example.net

The DNS zones to display.

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 export_zone_files zone=example.com zone=example.net

Response samples

Content type
application/json
{
  • "data": {
    • "payload": [
      • {
        • "text_b64": "AAAABBCCDdshjke==",
        • "zone": "example.com"
        },
      • {
        • "text_b64": "BBBBCCDDDdshjke==",
        • "zone": "example.net"
        }
      ]
    },
  • "metadata": {
    • "command": "export_zone_files",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}