Win2k "secret weapon" DNS tool (2)

  

This article began to introduce the use of the command:

In the introduction of the command format, it has been pointed out: the complete command format is: first Dnscmd, followed by the server name Variables, then commands and parameters. Here, in order to save space, analyze directly from the command.

Command: /Info

Purpose: Use the /Info command to list the specified properties of the specified DNS server. Obviously, this requires specifying the properties to display in the command parameters. If you do not specify an attribute, all the attributes listed will be listed after executing this command.

Usage:

dnscmd ServerName /Info [Property]

Parameters:

ServerName

The server name is already in the previous article. Introduced, omitted here.

[Property] The parameters in square brackets are optional, here are the specified properties that need to be displayed. If you do not specify an attribute, all attributes are displayed after the command is executed.

The following is a more complete example of the command:

After executing the corresponding command, the system will output the display information in English. The Chinese in the text output below is the explanation added by me, not the original output. The IP address of the DNS server is assumed to be 172.16.12.1:

dnscmd 172.16.12.1 /info Use only commands without parameters

Information output:

DNS Server 172.16. 12.1 Information:

C:>dnscmd 172.16.12.1 /info

Query result: Query Results

Server info: Server Information

ptr = 00074718 Port

server name = myserver.microsoft.com server name

version = C2000005 version

DS container = c DS“container';

Configuration: Configuration information For the meaning of this information, please refer to the relevant information

dwLogLevel = 00000000

dwDebugLevel = 00000000

dwRpcProtocol = FFFFFFFF

dwNameCheckFlag = 00000002

cAddressAnswerLimit = 0

dwRecursionRetry = 3

dwRecursionTimeout = 15

dwDsPollingInterval = 300

Configuration Flags: These flags flag values ​​configuration is the current status of the flag is located. For the meaning, please refer to the relevant information

fBootMethod = 3

fAdminConfigured = 1

fAllowUpdate = 1

fDsAvailable = 1

fAutoReverseZones = 1

fAutoCacheUpdate = 0

fSlave = 0

fNoRecursion = 0

fRoundRobin = 1

fLocalNetPriority = 1

tricSFileParsing = 0

fLooseWildcarding = 0

fBindSecondaries = 1

fWriteAuthorityNs = 0

Aging Configuration:

ScavengingInterval = 0

DefaultAgingState = 0

DefaultRefreshInterval = 168

DefaultNoRefreshInterval = 168

ServerAddresses:

Addr Count = 1

Addr[0] => 172.16.12.1

ListenAddresses:

NULL IP Array.

Forwarders:

Addr Count = 1

Addr[0] => 172.16.4.3

forward timeout = 5

slave = 0

Command completed success Fully. The command is executed successfully

The author completely puts this example in this article, not to completely explain the meaning of each output information, but to provide a template for friends to observe the output of the command. To gain a perceptual understanding. If you have already had an impression of the above example, after you execute this command to get the output information, there must be a feeling that I have seen this. Because, in the process of troubleshooting, even if there is only indirect experience, it is much stronger than the complete stranger.

Command: /Config

If the server's zone is not specified, use the /Config command to reset the properties of the DNS server. If the name of the zone has already been specified, the command only resets the attributes of the zone. The meaning of zone is the meaning of zone or scope.

Usage:

dnscmd ServerName /Config [ZoneName | ..AllZones] Property Value

Parameters

ServerName : Server Name, meaning as above

ZoneName:

This parameter specifies the name of the zone in the configured zone. If you use ..AllZones , reset the properties of all zones. If you do not specify a zone name, you can only reset the server properties.

Property:

This parameter is an attribute. The properties mentioned here are:

Server-related properties: For example:

/EnableRegistryBoot

/RpcProtocol

/LogLevel

/EventlogLevel and so on (limited to the length of the list)

Properties related to Zone, for example:

/SecureSecondaries

/AllowUpdate

/Aging

/RefreshInterval Value

/NoRefreshInterval Value

Attribute Value:

Attribute values ​​are all double word length values, ie type DWORD ; hexadecimal form beginning with 0x.

From the parameter structure of the command, the purpose of this command is to reset, in fact, can also be understood as modifying the server's zone, because the last time the command statement can specify the value of the property to be reset. The value specified is different and the result of the reset is different.

Command: /Statistics

Function: Use this command to display or delete statistics or information about the server. In the selectable items of the command, there are two parameters that can only be used at a time, or the display or deletion is determined by yourself.

Usage:

dnscmd ServerName /Statistics [Filter| /Clear]

Parameters:

ServerName

Server name, meaning the same as above.

Description of optional parameters:

There are two parameters, only one of them can be used at a time.

1.Filter

Use this parameter to associate or filter the desired statistics. If you do not use the fruit specification, all statistics will be displayed by default.

The following data can be used to specify the filtered information. Since most of the meanings are easier to understand, no Chinese comments are added here. However, it should be noted that the specified filter parameters can only be one of the following, you can't make your own:

00000001 -- Time

00000002 -- Query

00000004 -- Query2< Br>

00000008 -- Recurse

00000010 -- Master

00000020 -- Secondary

00000040 -- Wins

00000100 -- Update< Br>

00000200 -- SkwanSec

00000400 -- Ds

00010000 -- Memory

00100000 -- PacketMem

00040000 -- Dbase< Br>

00080000 -- Records

00200000 -- NbstatMem

2. Clear/Clear

This parameter is used to clear statistics.

Originally, this command has a very detailed example, with various statistics displayed and formatted. Due to the large size, it cannot be attached to this article. If you are interested in research, please refer to the help documentation for the support tool (not the help documentation for windows2000).

Copyright © Windows knowledge All Rights Reserved