latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

DNS
DNS Security

Import DNSSEC key

This function imports a DNSSEC security key.

Note:

Only servers that run PowerDNS can use DNSSEC. If you call this function on a server that doesn't use PowerDNS, you will receive an error.

get/import_zone_key

Query parameters

domainstring required
Example:example.com

The domain for which to import the security key.

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

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

key_typestring required
Example:ksk

The security key's type.

  • ksk — Key-Signing Key
  • zsk — Zone Signing Key

Note:

You must call these values in lowercase.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "import_key_id": 1
  },
  "metadata": {
    "command": "import_zone_key",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}