Microsoft KB Archive/286041

= How to use Dnscmd.exe to Extract Information from Active Directory Integrated DNS Zones =

PSS ID Number: 286041

Article Last Modified on 11/4/2003

-

The information in this article applies to:


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-



This article was previously published under Q286041



SUMMARY
The Domain Name System (DNS) console includes an improved graphical user interface (GUI) for managing the DNS service. Also, Windows 2000 Server includes several new configuration wizards and other tools to help you manage and support DNS servers and clients on your network.

You can also use the Dnscmd.exe command-line tool to perform most of the tasks that you can perform from the DNS console.

Note that you cannot generate the output of an entire zone by using the GUI, but you can do so by using Dnscmd.exe.



Using the Dnscmd.exe Tool
You can use the Dnscmd.exe command-line tool to perform most of the tasks that you can perform from the DNS console. For example, you can create, delete, and view zones and records; reset server and zone properties; and perform routine administration operations such as updating the zone, reloading the zone, refreshing the zone, writing the zone back to a file or Active Directory, pausing and resuming the zone, clearing the cache, stopping and starting the DNS service, and viewing statistics.

You can also use Dnscmd.exe to write scripts for remote administration. For more information about Dnscmd.exe, see the Windows 2000 Support Tools Help. For information about installing and using the Windows 2000 Support Tools and Support Tools Help, see the Sreadme.doc file in the Support\Tools folder on the Windows 2000 CD-ROM.

The Syntax for Dnscmd.exe
The syntax for Dnscmd.exe is:

dnscmd   [ ]

Use the following command to obtain the properties of the listed zone:

dnscmd  /zoneinfo  

Use the following command for producing output in the form of a DNS zone file:

dnscmd  /enumrecords    [ ]

For example, if you are logged on locally on the DNS server, type:

dnscmd. /enumrecords microsoft.com &quot;@&quot;

You can pipe the output directly into a file by using the pipe command (> zonefile.txt). For more information about Dnscmd.exe, type:

dnscmd /?

For help about a specific command, type

dnscmd  /?

Additional query words: dump listing zonefile

Keywords: kbhowto kbnetwork KB286041

Technology: kbwin2000AdvServ kbwin2000AdvServSearch kbwin2000Search kbwin2000Serv kbwin2000ServSearch kbWinAdvServSearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.