Sign DNS Zones with DNSSEC on Windows Se·续
Tip
-
A minimum of one KSK is required. Up to three KSKs can be added for each of the available cryptographic algorithms.
-
If the zone has been signed and then unsigned, the KSKs and settings that were used to previously sign the zone are automatically provided again.
After you enter the KSK parameters, select OK to add the KSK to the zone. Then select Next to continue.
-
On the Zone Signing Key (ZSK) information page, review the ZSK details and select Next.
-
To create a Zone Signing Key (ZSK), select Add, complete the following information:
| Parameter | Value |
| --- | --- |
| 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 1024 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 signature validity period (hours) | Select one of the following options: - 168 hours (default) - 6 - 720 hours |
| DS signature validity period (hours) | Select one of the following options: - 168 hours (default) - 6 - 720 hours |
| Zone record validity period (hours) | Select one of the following options: - 240 hours (default) - 6 - 720 hours |
| Enable Key Rollover | Check the box to enable automatic rollover. Rollover is enabled by default. Enter the desired values - Rollover frequency (days): 6 - 1825 days, 90 days is the default - Delay the first rollover by (days): 0 - 30 days, 0 days is the default |
Tip
-
A minimum of one ZSK is required. Up to three ZSKs can be added for each of the available cryptographic algorithms.
-
If the zone has been signed and then unsigned, the KSKs and settings that were used to previously sign the zone are automatically provided again.
After you enter the ZSK parameters, select OK to add the ZSK to the zone. Then select Next to continue.
-
If you need to add a new ZSK, configure the key properties in the New Zone Signing Key (ZSK) dialog and select OK.
-
On the Next Secure (NSEC) page, select either Use NSEC3 (recommended) or Use NSEC, configure the iterations and salt length if using NSEC3, then select Next.
-
On the Trust Anchors (TAs) page, optionally select Enable the distribution of trust anchors for this zone and Enable automatic update of trust anchors on key rollover, then select Next.
-
On the Signing and Polling Parameters page, complete the following information:
| Parameter | Value |
| --- | --- |
| DS record generation algorithm | Select one of the following options: - All - None - SHA-1 - SHA-1 and SHA-256 (default) - SHA-1 and SHA-384 - SHA-256 - SHA-256 and SHA-384 - SHA-384 |
| DS record TTL (seconds) | Enter a value between 0 and 604800 seconds. The default is 3,600 seconds. |
| DNSKEY record TTL (seconds) | Enter a value between 0 and 604800 seconds. The default is 3,600 seconds. |
| Secure delegation polling period (hours) | Enter a value between 1 and 168 hours. The default is 12 hours. |
| Signature inception (hours) | Enter a value between 0 and 168 hours. The default is 1 hour. |
After you enter the signing and polling parameters, select Next to continue.
-
To sign the zone, review the summary page that displays all of the DNSSEC parameters. If you need to make changes, select Back to return to the appropriate page and modify the settings. If everything looks correct, select Next.
-
On the final page, when the zone is successfully signed, select Finish to close the wizard.
Windows PowerShell
To sign a DNS zone using Windows PowerShell, you can use the Invoke-DnsServerZoneSign cmdlet.
To sign a zone, follow these steps:
-
Open Windows PowerShell with administrative privileges on a primary, authoritative DNS server.
-
To create a signed zone, you first need to sign the zone using the default parameters. Use the following command, replacing
<ZoneName>with the name of your zone and<ComputerName>with the name of your DNS server:
Invoke-DnsServerZoneSign -ZoneName <ZoneName> -ComputerName <ComputerName> -SignWithDefault -PassThru -Verbose -Force
The -SignWithDefault parameter uses the default DNSSEC parameters to sign the zone. The -PassThru parameter returns the signed zone object, and the -Verbose parameter provides detailed output during the signing process. The -Force parameter suppresses confirmation prompts.
After running this command, the zone will be signed with DNSSEC.
- To change the DNSSEC parameters for the signed zone, you can use the Set-DnsServerDnsSecZoneSetting cmdlet. For example, to change the NSEC3 salt length and iterations, you can run the following command:
Set-DnsServerDnsSecZoneSetting -ZoneName <ZoneName> -NSec3RandomSaltLength 8 -NSec3Iterations 50 -Verbose
This command modifies the NSEC3 salt length to 8 octets and the iterations to 50 for the specified zone.
- To view the DNSSEC settings for the signed zone, you can use the Get-DnsServerDnsSecZoneSetting cmdlet:
Get-DnsServerDnsSecZoneSetting -ZoneName <ZoneName>
This command retrieves the DNSSEC settings for the specified zone on the specified DNS server.
Important
Some DNSSEC settings can't be modified when a zone is signed. Changing these settings requires that the zone is first unsigned, and then signed again. To learn more about changing DNSSEC settings, see the Modifying DNSSEC properties section.
Unsign zone wizard
To remove DNSSEC from a signed zone, you can use the Unsign zone wizard in DNS Manager or using PowerShell. The unsign zone wizard removes all DNSSEC-related resource records from the zone, including the DNSKEY, DS, and RRSIG records. After a zone is unsigned, it can be modified or deleted like any other unsigned zone.
To unsign a zone, select your preferred method:
DNS Manager
To unsign a zone using DNS Manager, follow these steps:
-
Open DNS Manager on a primary, authoritative DNS server.
-
In the DNS Manager console tree, right-click the signed zone that you want to unsign, point to DNSSEC, and then choose Unsign the Zone.
The zone is immediately unsigned, and all DNSSEC-related resource records are removed from the zone. You can unsign a zone on any primary, authoritative DNS server that hosts a signed version of the zone; it doesn't have to be the Key Master.
Windows PowerShell
To unsign a DNS zone using Windows PowerShell, you can use the Invoke-DnsServerZoneUnSign cmdlet.
To unsign a zone, follow these steps:
-
Open Windows PowerShell with administrative privileges on a primary, authoritative DNS server.
-
To unsign a zone, use the following command, replacing
<ZoneName>with the name of your zone and<ComputerName>with the name of your DNS server:
Invoke-DnsServerZoneUnSign -ZoneName <ZoneName> -PassThru -Verbose -Force
The -PassThru parameter returns the unsigned zone object, and the -Verbose parameter provides detailed output during the unsigning process. The -Force parameter suppresses confirmation prompts.
After running this command, the zone will be unsigned, and all DNSSEC-related resource records will be removed.
When you unsign a zone, the parameters that were used for zone signing are saved so that you can use them again. To re-sign a zone using the same parameters that were used previously, choose Customize zone signing parameters and use the values that are provided for each parameter. The KSK and ZSKs that were used to sign the zone previously, along with values for all custom DNSSEC parameters are automatically populated in the Zone Signing Wizard. If you don't wish to use the same parameters, you also have the option of changing them.
If you're using Windows PowerShell, you can reuse the same parameters by specifying the DoResign parameter with the Invoke-DnsServerZoneSign cmdlet. To use the default parameters, you can specify the SignWithDefault parameter.
Modifying DNSSEC properties
After a zone is signed, certain DNSSEC properties can be modified. For example, keys can be added after the zone is signed. If you add a new signing key, the zone is immediately signed again with this key and any other keys that are still present in the zone. Active signing keys can't be deleted, but you can retire a signing key if it isn't the last KSK or ZSK in the zone.
Some properties can be changed without unsigning and re-signing the zone. However, those settings aren't used immediately. For example, changes to KSK settings don't take effect until the next KSK rollover. This behavior includes signature and polling settings on the Advanced tab of the DNSSEC properties page. Similarly, changes to ZSK settings don't take effect until the next ZSK rollover.
Certain DNSSEC settings can't be modified when a zone is signed. Changing these settings requires that the zone is first unsigned, and then signed again. In this scenario, any trust anchors that have been distributed to resolving DNS servers must be manually updated.
