Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 1.72 KB

BIND-Manual-KSK-Rollover.md

File metadata and controls

69 lines (51 loc) · 1.72 KB

Manual KSK Rollover

The KSK rollover is usually done at the end of its lifetime. But a key rollover can be forced before that by issuing the rollover command.

  1. Check the status of your keys:
sudo rndc dnssec -status labbX.examples.nu
  1. Initiate a KSK rollover:
sudo rndc dnssec -rollover -key <KEY ID> labbX.examples.nu
  1. Check the status of your keys again, to see that a new KSK has been generated:
sudo rndc dnssec -status labbX.examples.nu
  1. Verify that the dnskey record is published:
dig @127.0.0.1 labbX.examples.nu dnskey +multi
  1. generate a DS record for the new key
sudo dnssec-dsfromkey -2 /var/cache/bind/KlabbX.examples.nu.+013+<KEY ID>.key
  1. Ask your teacher to update the DS in the parent zone.

  2. Wait until the new DS has been uploaded. Check the DS with the following command:

dig @ns1.examples.nu labbX.examples.nu DS
  1. Tell BIND that the new DS is published in the parent zone:
sudo rndc dnssec -checkds -key <KEY ID> published labbX.examples.nu
  1. Ask your teacher to remove the old the DS in the parent zone.

  2. Wait until the old DS has been removed. Check the DS with the following command:

dig @ns1.examples.nu labbX.examples.nu DS
  1. Tell BIND that the old DS has been removed from the parent zone:
sudo rndc dnssec -checkds -key <KEY ID> withdrawn labbX.examples.nu
  1. Wait for BIND to remove the old key from the zone. This should only take a few minutes. You can check periodically with:
sudo rndc dnssec -status labbX.examples.nu

or

dig @127.0.0.1 labbX.examples.nu dnskey +multi

Next Section: Algorithm Rollover

Testing