How can I view the directory partitions enlisted for a domain controller (DC)?

Windows Server 2003 introduced the DomainDNSZones application partition, which is replicated to all DCs running the DNS service within a domain.

John Savill

July 23, 2005

2 Min Read
Windows logo
Alamy

A. Windows Server 2003 introduced the DomainDNSZones application partition, which is replicated to all DCs running the DNS service within a domain (so each domain has its own version of the DomainDNSZones partition) and the ForestDNSZones application partition, which is replicated to all DCs running the DNS service within the entire forest.

To determine which directory partitions a DC running DNS is registered as part of the replica set, run the command

dnscmd /enumdirectorypartitions

which on my system resulted in the following output:

Enumerated directory partition list:Directory partition count = 2DomainDnsZones.savilltech.com Enlisted Auto DomainForestDnsZones.savilltech.com Enlisted Auto ForestCommand completed successfully.

This example shows that the DC is enlisted in both the domain (DomainDNSZones) and forest (ForestDNSZones) application partitions. Alternatively, the status could show as "Not-Enlisted Auto Domain/Forest".

To add the server to a partition's replica set, use the /enlistdirectorypartition parameter, as this example shows

dnscmd /enlistdirectorypartition domaindnszones.savilltech.com

Running this command displays the following output:

DNS Server . enlisted directory partition: domaindnszones.savilltech.com Command completed successfully.

To view all the members of the replica set of a partition, use the ntdsutil command as shown below (enter the commands in bold):

ntdsutilntdsutil: domain management domain management: connectionserver connections: connect to server savdaldc01Binding to savdaldc01 ...Connected to savdaldc01 using credentials of locally logged on user.server connections: quitdomain management: listNote: Directory partition names with International/Unicode characters will display correctly only if appropriate fonts and language support are loadedFound 6 Naming Context(s)0 - CN=Configuration,DC=savilltech,DC=com1 - DC=savilltech,DC=com2 - CN=Schema,CN=Configuration,DC=savilltech,DC=com3 - DC=DomainDnsZones,DC=savilltech,DC=com4 - DC=ForestDnsZones,DC=savilltech,DC=com5 - DC=child,DC=savilltech,DC=comdomain management: list nc replica dc=forestdnszones,dc=savilltech,dc=comThe application directory partition dc=forestdnszones,dc=savilltech,dc=com's Replicas are:CN=NTDS Settings,CN=VPC2003ROOTDC2,CN=Servers,CN=Smallville,CN=Sites,CN=Configuration,DC=savilltech,DC=com CN=NTDS Settings,CN=SAVDALDC02,CN=Servers,CN=Smallville,CN=Sites,CN=Configuration,DC=savilltech,DC=com *CN=NTDS Settings,CN=SAVDALDC01,CN=Servers,CN=Smallville,CN=Sites,CN=Configuration,DC=savilltech,DC=comThe *'ed items are currently uninstantiated replicas.domain management: list nc replica dc=domaindnszones,dc=savilltech,dc=comThe application directory partition dc=domaindnszones,dc=savilltech,dc=com's Replicas are:CN=NTDS Settings,CN=VPC2003ROOTDC2,CN=Servers,CN=Smallville,CN=Sites,CN=Configuration,DC=savilltech,DC=comCN=NTDS Settings,CN=SAVDALDC01,CN=Servers,CN=Smallville,CN=Sites,CN=Configuration,DC=savilltech,DC=comdomain management: quitntdsutil: quitDisconnecting from savdaldc01...

The sample code and output first shows starting the domain management functions of the NTDSUTIL command, then connecting to a DC. Next you use the list command to tell ntdsutil to show all the partitions that exist, then to display the members of the forestdnszones replica set and the domaindnszones replica set (for the savilltech.com domain).

Related:Windows Server 2003 Editions Compared

If the output shows any DCs listed as uninstantiated replicas, it means no replication object is configured to allow the replication of the information. You can force the Knowledge Consistency Checker (KCC) to run to create the replication objects, as needed. To do so, type the command

repadmin /kcc 

and then force replication by running the command

repadmin /syncall

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like