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.

SecurityBasicAuth
Request
query Parameters
zone
required
Array of strings <domain>

The DNS zones to display.

Example: zone=example.com&zone=example.net
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/export_zone_files
Request samples
whmapi1 --output=jsonpretty \
  export_zone_files \
  zone='example.com' zone='example.net'
Response samples
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
    }
}