Thursday, November 13, 2008

DNSCmd.exe is a Command Line Interface utility to display and modify Windows DNS

DNSCmd.exe is a Command Line Interface utility to display and modify Windows DNS (Domain Name

System)servers. DNSCmd.exe is an equivalent to the DNS Server snap-in from the MMC (Microsoft Management Console).

Dnscmd is enhanced version of the dnsstat.exe utility in Windows NT which infact was replaced by Dnscmd.exe utility itself later on.

Dnscmd.exe can be used to display and edit the properties of DNS servers, DNS Zones and Resource Records. Dnscmd.exe can also be used to force replaication between DNS Server memory

and DNS database and data files. Dnscmd.exe is also useful for the fact that it can run on the local server systems and on remote servers running DNS Server software.

The Syntax for Dnscmd.exe is

dnscmd Command [Command Parameters]

For a list of commands that can be run using the dnscmd utility, click here

Example:

To display a Complete list of Zones on a DNS Server

dnscmd example.com /enumzones

Enumerated zone list:
Zone Count = 6.

. 0 DS Up=0
0.0.10.in-addr.arpa 0 DS Rev Up=1
0.in-addr.arpa 1 file Rev Auto Up=0
255.in-addr.arpa 1 file Rev Auto Up=0
example.com 1 DS Up=0
host.example.com 1 file Up=1

Command completed successfully.

Delete Records in a node

dnscmd example.com /nodedelete host.example.com node /tree

Are you sure you want to delete node's subtree? y

DNS Server example.com deleted node at node.host.example.com:
Status = 0 (0×00000000)
Command completed successfully.

For more examples, click here

No comments: