Adding and Signing a Zone

OpenDNSSEC supports multiple ways to import and export zones. The most basic and straight forward way is the file backend. It will read an unsigned zone file, sign it and output a signed zone file.

  1. You will now add a zone and sign it. OpenDNSSEC will search for unsigned zone files in /var/opendnssec/unsigned/ folder. Create the sample zone file test.com with the below details.

/var/opendnssec/test.com

$ORIGIN test.com. 

$TTL 86400 

  test.com.    3600    IN      SOA     ns.test.com. username.test.com. 1 

86400 7200 2419200 300 test.com.            IN      NS      ns ns                      IN      A       172.23.0.10 
  1. Add the zone test.com with the command below. This zone file will be fetched by OpenDNSSEC, keys will be generated, and zone will be signed according to the policy setup into the kasp.xml file.

›_ Console

# ods-enforcer zone add -z test.com 
image-3284598890-1.jpg

Signing zone output

  1. To display the Zone List, run the below command.

›_ Console

# ods-enforcer zone list 
image-3284598890-2.jpg

List zone output

  1. Use the command below to list the Zone keys.

›_ Console

# ods-enforcer key list 
image-3284598890-3.jpg

List zone keys output