dnscmd /ageallrecords command
Sets the current time on a time stamp on resource records at a specified zone or node on a DNS server.
Syntax
dnscmd [<servername>] /ageallrecords <zonename>[<nodename>] | [/tree]|[/f]
Parameters
Parameter | Description |
---|---|
<servername> |
Specifies the DNS server that the administrator plans to manage, represented by IP address, fully qualified domain name (FQDN), or Hostname. If this parameter is omitted, the local server is used. |
<zonename> |
Specifies the FQDN of the zone. |
<nodename> |
Specifies a specific node or subtree in the zone, using the following:
|
/tree | Specifies that all child nodes also receive the time stamp. |
/f | Runs the command without asking for confirmation. |
Remarks
- The ageallrecords command is for backward compatibility between the current version of DNS and previous releases of DNS in which aging and scavenging were not supported. It adds a time stamp with the current time to resource records that do not have a time stamp, and it sets the current time on resource records that do have a time stamp.
- Record scavenging does not occur unless the records are time stamped. Name server (NS) resource records, start of authority (SOA) resource records, and Windows Internet Name Service (WINS) resource records are not included in the scavenging process, and they are not time stamped even when the ageallrecords command runs.
- This command fails unless scavenging is enabled for the DNS server and the zone. For information about how to enable scavenging for the zone, see the aging parameter, within the syntax of the
dnscmd /config
command in this article. - The addition of a time stamp to DNS resource records makes them incompatible with DNS servers that run on operating systems other than Windows Server. A time stamp added by using the ageallrecords command can’t be reversed.
- If none of the optional parameters are specified, the command returns all resource records at the specified node. If a value is specified for at least one of the optional parameters, dnscmd enumerates only the resource records that correspond to the value or values that are specified in the optional parameter or parameters.
Examples
Example 1: Set the current time on a time stamp to resource records