Sign DNS Zones with DNSSEC on Windows Server | Microsoft Learn

DNSSEC (Domain Name System Security Extensions) protects DNS zones from tampering and ensures data integrity by adding cryptographic signatures to DNS records. This article guides DNS administrators through the process of signing DNS zones with DNSSEC on Windows Server.

Signing a zone with DNSSEC adds several new DNSSEC related resource records. These new resource records can be sent in response to DNS queries for the zone along with the traditional, non-DNSSEC-related resource records. DNS servers must specifically request that DNSSEC records be included in DNS responses. Therefore, servers that don't support DNSSEC receives only traditional resource records in a DNS response.

A signed zone can be a forward or reverse lookup zone, a static, or dynamic zone, and can be Active Directory-integrated or file-backed. If the zone is Active Directory-integrated, private zone signing keys replicate automatically to all primary Key Master DNS servers through Active Directory replication. Each server that functions as Key Master signs its own copy of the zone when it receives the key. For optimal performance, and to prevent increasing the size of the Active Directory database file, the signed copy of the zone remains in memory for Active Directory-integrated zones. A DNSSEC signed zone is only committed to disk for file-backed zones.

Signing parameters

Before you can sign a zone with DNSSEC, you must choose the DNSSEC parameter values that are used for signing. The parameters that you choose determine how the zone is signed and how DNSSEC operates for the zone.

Choosing to use default settings or parameters of an existing zone skip custom parameter pages. Some parameter values can also be modified after the zone is signed if desired.

The following options are available to specify the DNSSEC parameter values that are used for zone signing:

  • Customize zone signing parameters (default option)

If you choose this option, the wizard displays several pages that you can use to specific different parameter values, and provides you with default values for each parameter. These values can also be modified to any value within an acceptable range. If the zone was previously signed and then unsigned, the parameters that were most recently used are provided as the default values.

  • Existing parameters

To use this option, the DNS server must already be authoritative for one or more DNSSEC-signed zones. If you choose this option, you must provide the name of a signed zone to use as a template for signing the current zone. If the zone was previously signed, the parameters that were used to sign the zone are provided as the default values.

  • Default parameters

If you choose this option, the zone is signed with default parameters. These parameters appear by default when you choose to customize zone signing settings. If the zone was signed before with different settings, the most recent parameters are displayed instead. If you choose to sign the zone with default settings, the wizard skips to the summary page.

Cryptographic algorithms and NSEC methods

If you're using custom parameters to sign a zone with DNSSEC, you must choose the cryptographic algorithms and next secure (NSEC) methods that are used for signing keys. The cryptographic algorithm determines how the keys are generated and used, while the NSEC method determines how authenticated denial of existence is provided in the signed zone.

Multiple cryptographic algorithms are available for use in either a KSK or ZSK. You can use different algorithms for Key Signing Keys (KSKs) and Zone Signing Keys (ZSKs). However, you can't sign a zone if one key uses the RSA/SHA-1 (NSEC3) algorithm while another key uses the RSA/SHA-1 algorithm. These two cryptographic algorithms are incompatible.

The following table shows cryptographic algorithms and compatible NSEC methods.

| Algorithm | Compatible NSEC methods |

| --- | --- |

| ECDSAP256/SHA-256 | NSEC, NSEC3 |

| ECDSAP384/SHA-384 | NSEC, NSEC3 |

| RSA/SHA-1 | NSEC |

| RSA/SHA-1 (NSEC3) | NSEC3 |

| RSA/SHA-256 | NSEC, NSEC3 |

| RSA/SHA-512 | NSEC, NSEC3 |

Note

You can't use NSEC for authenticated denial of existence if you chose RSA/SHA-1 (NSEC3) as a cryptographic algorithm in any KSK or ZSK. You also can't use NSEC3 if you're using RSA/SHA-1 with any signing key.

You must have at least one (1) KSK and one (1) ZSK. You can have up to three (3) KSKs and three (3) ZSKs that use the same cryptographic algorithm, and you have multiple cryptographic algorithms.

To support automatic key rollover, another signing key is generated for each ZSK and KSK that is added to the zone. For automatic KSK rollover, only the double signature rollover method is supported. For automatic ZSK rollover, only the prepublish rollover method is supported.

Typically, a zone is signed with a single ZSK and a single KSK. You might use more than one key to sign a zone under the following circumstances:

  1. All DNS validators don't support a single cryptographic algorithm.

  2. You're transitioning the DNS infrastructure to use new signing key properties.

  3. You're merging DNS zones or network elements that use different signing key properties.

Each extra signing key and cryptographic algorithm that you add increases the time and computational cost of zone signing.

Prerequisites

Before you can sign a zone with DNSSEC, you must meet the following prerequisites:

  • You must have the DNS Server role installed and configured.

  • You must have the DNS Server Remote Administration Tools installed on the computer that you use to sign the zone.

  • The DNS server must be a primary, authoritative DNS server for the zone that you want to sign. DNSSEC-related resource records are transferred to secondary servers, but you can't sign, view, or edit the DNSSEC properties of a secondary zone.

  • The DNS zone must be unsigned. If the zone is already signed, you must unsign it before you can sign it again.

  • You must have administrative privileges on the DNS server to sign a zone. If the DNS server is Active Directory-integrated, you must also have Domain Admin credentials, or equivalent, to sign a zone.

Signing a zone

On a DNS server running Windows Server, you can use DNS Manager or Windows PowerShell to sign a zone.

  • DNS Manager. The zone signing wizard provides a step-by-step interface to input DNSSEC parameters and initiate zone signing. If the zone is already signed, you can also view or edit settings and re-sign a zone using the DNSSEC properties page. An unsign zone wizard is also provided to remove DNSSEC-signed records from a zone.

  • Windows PowerShell. Many cmdlets are available to sign and unsign DNS zones, and to view or edit DNSSEC parameters.

Both methods for zone signing are compatible with each other. You can sign a zone with DNS Manager and view or edit settings with Windows PowerShell, and vice versa.

Tip

  • In the DNS Manager console tree, zones that are signed with DNSSEC are indicated with a lock icon.

  • The length of time that is required to sign a zone depends on the parameters that you specify and the size of the zone.

To begin signing a zone, select your preferred method:

DNS Manager

To sign a DNS zone using DNS Manager, follow these steps:

  1. Open DNS Manager on a primary, authoritative DNS server.

  2. To start the Zone Signing Wizard in DNS Manager, right-click a forward or reverse DNS zone on a primary, authoritative DNS server, point to DNSSEC, and choose Sign the Zone.

  3. In the Zone Signing Wizard welcome page, review the DNSSEC information and select Next.

  4. Select one of the three signing options and select Next. The follow steps assume you choose the first option, Customize zone signing parameters.

  5. Customize zone signing parameters (selected by default)

  6. Sign the zone with a new set of zone signing parameters

  7. Use default settings to sign the zone

  8. To select the Key Master, verify that the current DNS server is selected as the Key Master. Alternatively, select Select another primary server as the Key Master and choose a different server from the dropdown. Select Next.

  9. Review the KSK details on the Key Signing Key (KSK) information page, then select Next.

  10. To create a Key Signing Key (KSK) select Add, complete the following information:

| Parameter | Value |

| --- | --- |

| Key Generation | Select one of the following options: - Generate new signing keys (default) - Use pregenerated keys. If using pregenerated keys, you must specify an available active and standby key using the GUID. Use the Get-DnsServerSigningKey cmdlet to view available keys. The GUID is also called the KeyId. |

| Cryptographic algorithm | Select one of the following options: - RSA/SHA-256 (default) - ECDSAP256/SHA-256 - ECDSAP384/SHA-384 - RSA/SHA-1 - RSA/SHA-1 (NSEC3) - RSA/SHA-512 |

| Key length (bits) | Select one of the values from the dropdown menu. The default value is 2048 bits. The key length must be in the range of 1024 - 4096 bits in increments of 64 bits. For ECDSA keys, the key length is fixed at 256 bits or 384 bits. |

| Key storage provider | Select one of the following options: - Microsoft Software Key Storage Provider (default) - Microsoft Passport Key Storage Provider - Microsoft Platform Crypto Provider - Microsoft Smart Card Key Storage Provider If you intend to distribute the keys using Active Directory Domain Services, you must choose Microsoft Software Key Storage Provider. |

| DNSKEY RRSET signature validity period (hours) | Select one of the following options: - 168 hours (default) - 6 - 720 hours |

| Replicate this private key to all DNS servers authoritative for this zone | Check the box to enable this option (default). This option is enabled by default. If you disable this option, the private key is only stored on the Key Master. |

| Enable Key Rollover | Check the box to enable automatic rollover (default). Enter the desired values - Rollover frequency (days): 755 days (default) - Delay the first rollover by (days): 0 days (default) |