text
stringlengths
0
4.23k
Syntax
dnscmd [<servername>] /statistics [<statid>] [/clear]
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.
<statid>
Specifies which statistic or combination of statistics to display. The statistics command displays counters that begin on the DNS server when it is started or resumed. An identification number is used to identify a statistic. If no statistic ID number is specified, all statistics display. The numbers that can be specified, along with the corresponding statistic that displays, can include:00000001 - Time00000002 - Query00000004 - Query200000008 - Recurse00000010 - Master00000020 - Secondary00000040 - WINS00000100 - Update00000200 - SkwanSec00000400 - Ds00010000 - Memory00100000 - PacketMem00040000 - Dbase00080000 - Records00200000 - NbstatMem/clear - Resets the specified statistics counter to zero.
<servername>
<statid>
Examples
Example 7:
Example 8: Display NbstatMem statistics for a DNS server
dnscmd /unenlistdirectorypartition command
Removes the DNS server from the specified directory partition's replica set.
Syntax
dnscmd [<servername>] /unenlistdirectorypartition <partitionFQDN>
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.
<partitionFQDN>
The FQDN of the DNS application directory partition that will be removed.
<servername>
<partitionFQDN>
dnscmd /writebackfiles command
Checks the DNS server memory for changes, and writes them to persistent storage. The writebackfiles command updates all dirty zones or a specified zone. A zone is dirty when there are changes in memory that haven't yet been written to persistent storage. This is a server-level operation that checks all zones. You can specify one zone in this operation or you can use the zonewriteback operation.
Syntax
dnscmd [<servername>] /writebackfiles <zonename>
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.
<zonename>
Specifies the name of the zone to be updated.
<servername>
<zonename>
Examples
dnscmd dnssvr1.contoso.com /writebackfiles
dnscmd /zoneadd command
Adds a zone to the DNS server.
Syntax
dnscmd [<servername>] /zoneadd <zonename> <zonetype> [/dp <FQDN> | {/domain | enterprise | legacy}]
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.
<zonename>
Specifies the name of the zone.
<zonetype>