Sign and Verify the Zone file

Sign and Verify Zone Files with RSA Keys

  1. Perform zone signing.

›_ Console

/usr/local/bin/dnssec-signzone -S -o example.net /var/named/example.net
image-20260706-233508.png

Zone signing

  1. This generates the example.net.signed file. A DS record file will be automatically generated.

09_9.1.2_RSA_DS_record_file-20260706-233831.png

DS records files generated

  1. Verify the signed zone file. The signed zone file verification is done using the dnssec-verify command.

›_ Console

/usr/local/bin/dnssec-verify -z -o example.net /var/named/example.net.signed Kexample.net.+008+44141.key Kexample.net.+008+22449.key
09_9.1.3_RSA_signed_zone_verify-20260706-233947.png


Zone verification for RSA key

Where Kexample.net.+008+44141.key is the key file generated for the ksk key and Kexample.net.+008+22449.key is the key file generated for the zsk key.

Sign and Verify Zone Files with ECC Keys

  1. Use the dnssec-signzone command below to perform zone signing.

›_ Console

/usr/local/bin/dnssec-signzone -S -z -o exampleecc.net /var/named/exampleecc.net
image-20260707-001240.png


Zone signing for ECC key

This generates the exampleecc.net.signed file. A DS record file will be automatically generated.

09_9.2.2_ECC_DS_record_file-20260707-001338.png


DS record file details

  1. Verify the signed zone file.

›_ Console

/usr/local/bin/dnssec-verify -z -o exampleecc.net /var/named/exampleecc.net.signed Kexampleecc.net.+013+15983.key Kexampleecc.net.+013+23348.key
09_9.2.3_ECC_signed_zone_verify-20260707-001850.png


Zone verification for ECC key