WIndows command dnscmd /ageallrecords command

Share on facebook
Share on google
Share on twitter
Share on linkedin

dnscmd /ageallrecords command

Sets the current time on a time stamp on resource records at a specified zone or node on a DNS server.

Domain Network Systems (DNS) Information: Create PTR Record using dnscmd  command

https://computerthang.com/p/intel-xeon-e5-2650l-8-core-rx560-gtx960-4g-16g-ram-240g-ssd/

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/dnscmd

Syntax

dnscmd [<servername>] /ageallrecords <zonename>[<nodename>] | [/tree]|[/f]

Parameters

PARAMETERS
Parameter Description
<servername> Specifies the DNS server that the administrator plans to manage, represented by IP address, fully qualified domain name (FQDN), or Host name. 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:

  • @ for root zone or FQDN
  • The FQDN of a node (the name with a period (.) at the end)
  • A single label for the name relative to the zone root.
/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