v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
DNSSEC
DNS Security

Export DNSKEY record value

This function exports a domain's DNSKEY record value.

Important:

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

get/DNSSEC/export_zone_dnskey

Query parameters

domainstring domain required
Example:example.com

The domain from which to fetch the DNSKEY record value.

key_idinteger required
Example:12345

The DNSSEC record's ID.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "export_zone_dnskey",
  "module": "DNSSEC",
  "result": {
    "data": {
      "dnskey": "AwEAAch8SGW4vE6PjFWA9rbUm0AfTq+gJ0HC/nLu+2axdWHBIStt9lsOzKDorAr4vlmhlJzEzA62s96xp6mZ7XHUyWnkFwLs8obo6upL2in4h1ToOxzVl3lTs8O+kWtDq5/h1nwFlPDs9zpLJhlkTCtx2OTGbvimEYeqwPolUuSQR/Yb",
      "key_id": 12345,
      "success": 1
    },
    "status": 1
  }
}