v1

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

Add DNSSEC security key

This function imports a DNSSEC security key.

Important:

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

get/DNSSEC/import_zone_key

Query parameters

domainstring domain required
Example:example.com

The security key's domain.

key_datastring required
Example:Private-key-format:%20v1.2%0AAlgorithm:%2013%20\(ECDSAP256SHA256\)%0APrivateKey:%20xCM281KtWE9oCsUX8fP1hDZ02/X7JCjp4QZA/DZjfX0=%0A%0A

The security key data that the pdnsutil utility's export-zone-key call returns.

key_type'ksk' | 'zsk' required
Example:ksk

The security key's type.

  • ksk
  • zsk

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": "import_zone_key",
  "module": "DNSSEC",
  "result": {
    "data": {
      "domain": "example.com",
      "new_key_id": "1",
      "success": 1
    },
    "status": 1
  }
}