# API: Set domain DNSSEC

# domainSetDNSSEC

Set domain DNSSEC. For KEY you must provide the following parameters:

  • dnssec_form[flag]
  • dnssec_form[protocol]
  • dnssec_form[algorithm]
  • dnssec_form[publickey]

For DS you must provide the following parameters:

  • dnssec_form[key_tag]
  • dnssec_form[algorithm]
  • dnssec_form[digest_type]
  • dnssec_form[digest]

To remove KEY/DS, enter the parameter:

  • remove

# Required parameters

Parameter Description
id Domain ID

# Optional parameters

Parameter Description
dnssec_form Array with parameters of the key to be added:

KEY:

dnssec_form[flag] - Flag ID

dnssec_form[protocol] - Protocol ID

dnssec_form[algorithm] - Algorithm ID

dnssec_form[publickey] - Public Key

DS:

dnssec_form[key_tag] - Key tag

dnssec_form[algorithm] - Algorithm ID

dnssec_form[digest_type] - Digest type

dnssec_form[digest] - Digest

The available IDs are in the response of the domain Get DNSSEC method (dnssec names). remove|ID for the KEY/DS that we want to delete

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=domainSetDNSSEC&id=ID

# PHP Samples

# Response

{
    "success": true,
    "ManageDNSSec": {
        "widget_dnssec_get": {
            "dnssec0": {
                "id": "bd29b4d81d0c1905406229afb9ebc8bc",
                "type": "KEY",
                "flag": "256",
                "algorithm": "13",
                "protocol": "3",
                "publickey": "odI1gJrvPaNHxPM9BWEknpVuxfUElbsXIfIW\/JRG3HPrxjj5kq4vBYkQd5FPYP1wFikMHtAZC5p\/U6TvXVNV3A=="
            },
            "dnssec1": {
                "id": "66e968bc2223455e45e0b3aba7be8d04",
                "type": "KEY",
                "flag": "256",
                "algorithm": "13",
                "protocol": "3",
                "publickey": "r+JPqx07oyxtHESvJOOQbatTyEa\/kuCwvWCH0LYRNz7C6ey9OzU1dblv7ehhZR2OQEQSHX5meueRVpqUh8uG\/A=="
            },
            "dnssecdsdata0": {
                "id": "3b2b77a49234909b4865979ae6dfc614",
                "type": "DS",
                "key_tag": "15999",
                "algorithm": "13",
                "digest_type": "2",
                "digest": "8228EF581067959E0E6232B46069BD0C496CB5AFEC323686E8AACD098D50189E"
            },
            "dnssecdsdata1": {
                "id": "a4b5f10b2408c53440ceba71eba6f2d1",
                "type": "DS",
                "key_tag": "59138",
                "algorithm": "13",
                "digest_type": "2",
                "digest": "7973BFB7E016D3ED54EA7EE2EB2066DCFEE3B38B65E7AD5BF6C82CAC48374B70"
            }
        }
    },
    "call": "domainSetDNSSEC",
    "server_time": 1703167869
}
Last Updated: 10/7/2024, 2:36:43 PM