text stringlengths 0 4.23k |
|---|
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 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 FQDNThe 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. |
<servername> |
<zonename> |
<nodename> |
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. |
dnscmd /config |
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 |
dnscmd /clearcache command |
Clears the DNS cache memory of resource records on the specified DNS server. |
Syntax |
dnscmd [<servername>] /clearcache |
Parameters |
Parameters |
Description |
<servername> |
Specifies the DNS server to manage, represented by IP address, FQDN, or host name. If this parameter is omitted, the local server is used. |
<servername> |
Example |
dnscmd dnssvr1.contoso.com /clearcache |
dnscmd /config command |
Changes values in the registry for the DNS server and individual zones. This command also modifies the configuration of the specified server. Accepts server-level and zone-level settings. |
Caution |
Don't edit the registry directly unless you have no alternative. The registry editor bypasses standard safeguards, allowing settings that can degrade performance, damage your system, or even require you to reinstall Windows. You can safely alter most registry settings by using the programs in Control Panel or Microsoft Management Console (mmc). If you must edit the registry directly, back it up first. Read the registry editor help for more information. |
Server-level syntax |
dnscmd [<servername>] /config <parameter> |
Parameters |
Note |
This article contains references to the term slave, a term that Microsoft no longer uses. When the term is removed from the software, we’ll remove it from this article. |
Parameters |
Description |
<servername> |
Specifies the DNS server that you are planning to manage, represented by local computer syntax, IP address, FQDN, or host name. If this parameter is omitted, the local server is used. |
<parameter> |
Specify a setting and, as an option, a value. Parameter values use this syntax: parameter [value]. |
/addressanswerlimit[0|5-28] |
Specifies the maximum number of host records that a DNS server can send in response to a query. The value can be zero (0), or it can be in the range of 5 through 28 records. The default value is zero (0). |
/bindsecondaries[0|1] |
Changes the format of the zone transfer so that it can achieve maximum compression and efficiency. Accepts the values:0 - Uses maximum compression and is compatible with BIND versions 4.9.4 and later only1 - Sends only one resource record per message to non-Microsoft DNS servers and is compatible with BIND versions earlier than 4.9.4. This is the default setting. |
/bootmethod[0|1|2|3] |
Determines the source from which the DNS server gets its configuration information. Accepts the values:0 - Clears the source of configuration information.1 - Loads from the BIND file that is located in the DNS directory, which is %systemroot%\System32\DNS by default.2 - Loads from the registry.3 - Loads from AD DS and the registry. This is the default setting. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.