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