Jan 222008

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 <SERVER> Command [Command Parameters]

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


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

Incoming search terms:

  2 Responses to “Dnscmd.exe – DNS Server Command Line Utility for Windows DNS”

  1. I am moving and my isp will be changing so I have to update about 300 zones

    What would be the command to use to update all the A records ?

    Are what is the best way for me to update all these records?



  2. Changing TLL with DNSCMD (this sets for 1 hour -3600 secs)
    dnscmd.exe dnsserver /config /MaxCacheTtl 3600

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>