Set Default Aging and Scavenging Properties for Zones on the DNS Server
Applies To: Windows Server 2008
The Domain Name System (DNS) Server service supports aging and scavenging features. These features are provided as a mechanism for performing cleanup and removal of stale resource records, which can accumulate in zone data over time. You can use this procedure to set the default aging and scavenging properties for Active Directory integrated zones on a server. See Managing Aging and Scavenging for more information.
You can use this procedure to set default aging and scavenging properties for Active Directory integrated zones on the DNS server using either the DNS Manager snap-in or the dnscmd command-line tool.
Membership in Administrators, or equivalent, is the minimum required to complete this procedure. Review details about using the appropriate accounts and group memberships at Local and Domain Default Groups (https://go.microsoft.com/fwlink/?LinkId=83477).
Setting default aging and scavenging properties for zones on the DNS server
Using the Windows interface
Using a command line
To set default aging and scavenging properties for zones on the DNS server using the Windows interface
Open DNS Manager. To open DNS Manager, click Start, point to Administrative Tools, and then click DNS.
In the console tree, right-click the applicable DNS server, and then click Set Aging/Scavenging for all zones.
Select the Scavenge stale resource records check box.
Modify other aging and scavenging properties as needed.
Additional considerations
When you apply changes for server aging and scavenging settings, DNS Manager prompts you to confirm the changes. You then have the option to apply your changes to new Active Directory–integrated zones only. If necessary, you can also apply your changes to existing Active Directory–integrated zones.
Regardless of whether the Scavenge stale resource records check box is selected as described in step 3, for standard primary zones, this feature is disabled unless you enable it manually at the applicable zone.
To set default aging and scavenging properties for zones on the DNS server using a command line
Open a command prompt. To open an elevated Command Prompt window, click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
At the command prompt, type the following command, and then press ENTER:
dnscmd <ServerName> /Config {/ScavengingInterval <Value>|/DefaultAgingState <Value>|/DefaultNoRefreshInterval <Value>|/DefaultRefreshInterval <Value>}
Parameter | Description |
---|---|
dnscmd |
The command-line tool for managing DNS servers. |
<ServerName> |
Required. Specifies the DNS host name of the DNS server. You can also type the IP address of the DNS server. To specify the DNS server on the local computer, you can also type a period (.) |
/Config |
Required. Configures the specified server. |
/ScavengingInterval |
Required. Sets the frequency by which the server will perform scavenging for all scavenging-enabled zones. |
/DefaultAgingState |
Required. Sets the default aging configuration for all zones on the server. |
/DefaultNoRefreshInterval |
Required. Sets the default no-refresh interval for scavenging-enabled zones. |
/DefaultRefreshInterval |
Sets the default refresh interval for scavenging-enabled zones. |
<Value> |
For /ScavengingInterval, type a value in hours. The default is 168 (one week). For /DefaultAgingState, type 1 to enable aging for new zones when they are created. Type 0 to disable aging for new zones. For /DefaultNoRefreshInterval, type a value in hours. The default is 168 (one week). For /DefaultRefreshInterval, type a value in hours. The default is 168 (one week). |
To view the complete syntax for this command, at a command prompt, type the following command, and then press ENTER:
dnscmd /Config /help