Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

September 15, 2009 12:00 AM

Dnscmd Versions Discrepancy

Windows IT Pro
InstantDoc ID #102795
Rating: (2)

You can automate creating an Active Directory (AD)-integrated zone with forest-wide replication using the Dnscmd utility. However, you must use version 5.2.3790 or later of the Dnscmd utility, which you can find in the Windows Support Tools for Windows Server 2003 (32-bit).

If you're using the correct version of Dnscmd, the following command will create a new AD-integrated zone through a server named DNSSERVER:

dnscmd DNSSERVER /zoneadd 80.16.172.in-addr.arpa /dsprimary /dp /forest

Unfortunately, if you try to use this same command with version 5.1.2600 of Dnscmd, which is in the Windows Support Tools for Windows XP, Dnscmd will silently ignore the /dp switch. Furthermore, this version of Dnscmd will set the zone to replicate only to domain controllers (DCs). If you have any DNS servers that aren't DCs, they won't receive replication updates. (Although this sample command creates a reverse zone, the problem pertains to creating both reverse and forward AD-integrated zones.)

If you're trying to automate zone creation from the command line or a batch file, you can't use the command-line Help file to ensure you have the correct version of Dnscmd. Both versions claim to support the directory partition syntax and will show the Help information in Figure 1 for the /dp switch.


Figure 1: The Help information for Dnscmd's /dp switch (click to enlarge)


Despite what the command-line Help file states, version 5.1.2600 of Dnscmd will neither set up forest-wide replication nor replicate to non-DC DNS servers. So, if you're working from an XP system, check the version of Dnscmd you have before creating a DNS AD-integrated zone. As Figure 2 shows, you can find the version on Dnscmd's properties page.


Figure 2: Finding the version of Dnscmd


If you don't have version 5.1.2600 or later and you don't have the Windows Support Tools for Windows 2003 (32-bit), you can download this tool set from the "Windows Server 2003 Service Pack 1 32-bit Support Tools" web page.

Related Content:

ARTICLE TOOLS

Comments
  • MIKE
    3 years ago
    Sep 17, 2009

    Great article Rick!!! Keep up the great work in the community.

    Talk to you later

    Mike

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.