How to Rotate a DNSSEC Key Print

  • 1


This document describes how to rotate a domain's DNS Security Extensions (DNSSEC) keys on a server. You can rotate your domains' DNSSEC keys regularly to increase your DNS record's security.


  • We recommend that you rotate your domain's DNSSEC keys yearly.
  • If you transfer the account to another server, you must create new DNSSEC keys for the account and update the registrar with the new keys. The system does not include DNSSEC keys in an account’s backup file. 
  • DNSSEC keys remain on a server after you terminate an account. If you restore an account on the same server from which you deleted it, the account’s DNSSEC keys remain valid.

  • For more information about DNSSEC key rotation, we strongly suggest that you read the RFC 6781 documentation.

Rotate the key

To rotate the DNSSEC key, perform the following steps:

  1. Add a new Key Sign Key (KSK) to the domain's DNS zone. To do this, run the following command:

    pdnssec add-zone-key ksk 2048 active

    The output will resemble the following example:

    Added a KSK with algorithm = 8, active=1
    Requested specific key size of 2048 bits

    Note: represents your domain. 

  2. Increase the DNS zone's Start of Authority (SOA) serial number.
  3. Review the updated zone's DNSSEC details for the Domain Server (DS) records that correspond to the new key. To do this, run the following command:

    pdnssec show-zone

    Thie output resembles the following example:

     Click to view...
  4. Add a new DS record for the domain through your nameserver registrar. To do this, follow the directions in our How to Set Up Nameservers in a cPanel Environment documentation.
  5. Wait 24 to 48 hours for the DS record to propagate.


    If you do not wait for the DS record to propagate, your domain may experience DNS resolution issues.

  6. Remove the domain's old KSK. To do this, run the following command:

    pdnssec remove-zone-key key-id



    keyid represents the old KSK's key ID. The pdnssec show-zone command's output contains the key's ID.

Was this answer helpful?

« Back