Using Dnscmd.exe in Windows 2000 Server
Takeaway: Dnscmd.exe is a command line tool that can help you be more efficient when it comes to repetitive tasks in Windows 2000 Server. Learn about this tool and how you can use it to discover information about your DNS server, maintain zones, and more.
A graphical user interface (GUI) can be great for novice users, but it can be quite cumbersome if you have to perform the same task over and over again. The beauty of command line tools is that you can easily script them. Sometimes command line tools can even do things GUI tools can't.
One neat command line tool is Dnscmd.exe, which can be used to perform various actions on Domain Name System (DNS) servers. Dnscmd.exe is one of the support tools from Support.cab, which is located in the support\tools directory on the Windows 2000 CD.
You can use Dnscmd.exe for a variety of tasks, which include:
- Get DNS server info.
- Initiate server scavenging.
- Enumerate and view zone info.
- Create, delete, pause, and resume zones.
- Change zone type (standard primary, standard secondary, AD integrated).
- Add, delete, and enumerate records in the zone.
If, for
example, you want to create a new standard primary zone called
myzone.example.com on a server called server1.example.com and stored in myzone.dns files, you would type:
dnscmd server1.example.com /ZoneAdd myzone.example.com /Primary
/file myzone.dns
Syntax for
adding DNS A records is very similar:
Dnscmdserver_name /RecordAddzone_namecomputer_name A IP_address
To add an A
record for a computer named computer1 with an IP address of 169.254.0.100 in
the example.com zone on myzone.example.com server, you would type:
Dnscmd myzone.example.com /RecordAdd example.com computer1 A 169.254.0.100
To manually force zone replication, type:
Dnscmdserver_name /ZoneRefreshzone_name
Miss a column?
Check out the Windows 2000 Server archive, and catch up on the all the W2K Server columns.
Want more Win2K tips and tricks? Automatically sign up for our free Windows 2000 Server newsletter, delivered each Tuesday!
SponsoredWhite Papers, Webcasts, and Downloads
- Riverbed Raises the Ante Again in WDS with RiOS 5.0 Riverbed
- Choosing the Best CRM for Your Organization Oracle
- TechRepublic Resource Guide - IP-PBX Technical Strategies TechRepublic
- Accelerating Secure Business Applications Podcast Riverbed
- Live Webcast: Energy Efficient Data Centers - Lower Costs, Greener Outcomes PC Connection
Article Categories
- Security
- Security Solutions, IT Locksmith
- Networking and Communications
- E-mail Administration NetNote, Cisco Routers and Switches
- CIO and IT Management
- Project Management, CIO Issues, Strategies that Scale
- Desktops, Laptops & OS
- Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
- Data Management
- Oracle, SQL Server
- Servers
- Windows NT, Linux NetNote, Windows Server 2003
- Career Development
- Geek Trivia
- Software/Web Development
- Web Development Zone, Visual Basic, .NET
