Article ID: 265706 - Last Review: October 26, 2007 - Revision: 6.3 DCDiag and NetDiag in Windows 2000 Facilitate Domain Join and DC CreationThis article was previously published under Q265706 On This PageSUMMARY This article describes the functionality that has been
added to the versions of the Domain Controller Diagnostics (Dcdiag.exe) and
Network Diagnostics (Netdiag.exe) tools that are included in Windows 2000.
For additional information about the latest
service pack for Windows 2000, click the article number below to view the
article in the Microsoft Knowledge Base: 260910
(http://support.microsoft.com/kb/260910/EN-US/
)
How to Obtain the Latest Windows 2000 Service Pack
MORE INFORMATION The functionality that has been added to Dcdiag.exe and
Netdiag.exe verifies that the Domain Name Service (DNS) infrastructure is
sufficient for deploying the Windows 2000 Active Directory service. The updated
Dcdiag.exe and Netdiag.exe tools in Windows 2000 provide the ability to test
the Domain Name Service (DNS)infrastructure to:
file name /h or file name /? where file name is either dcdiag.exe or
netdiag.exeDcdiag.exe UpdatesActive Directory Installation WizardThe Active Directory Installation Wizard tests the existing DNS infrastructure for promotion to domain controller. If the infrastructure is sufficient, you can promote the computer to domain controller in a domain specified in Active Directory Domain DNS Name. It also reports whether any modifications to the existing DNS infrastructure are required.
Required argument:
/DnsDomain:<Active_Directory_Domain_DNS_Name>
One of the following arguments is required:
/NewForest
/NewTree
/ChildDomain
/ReplicaDC
If NewTree is specified, then the ForestRoot argument is
required:
/ForestRoot:<Forest_Root_Domain_DNS_Name>
RegisterInDNSRegisterInDNS tests whether this domain controller can register the Domain Controller Locator DNS records. These records must be present in DNS for other computers to locate this domain controller for the Active Directory Domain DNS Name domain. It also reports whether you require any modifications to the existing DNS infrastructure.Required argument: DnsDomain: <Active_Directory_Domain_DNS_Name> Dcdiag.exe Updates DsGetDcDsGetDc is the domain controller discovery test. This command existed in the earlier version, but new functionality has been added to the display text to help resolve DNS configuration problems. The following examples provide the command-line arguments to for each of the new tests and sample output. Creating the First Domain Controller in a New Active Directory ForestThe example below is a DNS query issued to locate the DNS servers and zones that are authoritative for the DNS records that this domain controller should register followed by a "prerequisite-only " request to perform a dynamic update that probes an ability of the authoritative DNS servers and zones to process the dynamic updates.dcdiag /test:dcpromo /dnsdomain:example.microsoft.com /newforest Starting test: DcPromo Messages logged below this line indicate whether this domain controller will be able to dynamically register DNS records required for the location of this DC by other devices on the network. If any misconfiguration is detected, it might prevent dynamic DNS registration of some records, but does not prevent successful completion of the Active Directory Installation Wizard. However, we recommend fixing the reported problems now, unless you plan to manually update the DNS database. DNS configuration is sufficient to allow this domain controller to dynamically register the domain controller Locator records in DNS. ......................... RANDYMC1 passed test DcPromo Adding a New Domain Tree to an Existing Active Directory ForestIn the following example, a DNS query is issued for the SRV records for the domain controllers in the forest root domain. A query is then issued for the Host records for each domain controller. A DNS query is issued to locate the DNS servers and zones that are authoritative for the DNS records that this domain controller should register followed by a "prerequisite-only " request to perform a dynamic update that probes the ability of the authoritative DNS servers and zones to process the dynamic updates.dcdiag /test:dcpromo /dnsdomain:test.example.microsoft.com /newtree /forestroot:example.microsoft.com Starting test: DcPromo The DNS configuration is sufficient to allow this computer to be promoted as the first DC in the test.example.microsoft.com Active Directory domain. Messages logged below this line indicate whether this domain controller will be able to dynamically register DNS records required for the location of this DC by other devices on the network. If any misconfiguration is detected, it might prevent dynamic DNS registration of some records, but does not prevent successful completion of the Active Directory Installation Wizard. However, we recommend fixing the reported problems now, unless you plan to manually update the DNS database. DNS configuration is sufficient to allow this domain controller to dynamically register the domain controller Locator records in DNS. ......................... RANDYMC1 passed test DcPromo Adding a Child Domain to a Tree Within an Existing Active Directory ForestIn the following example, a DNS query is issued for the SRV records of the domain controllers hosting parent Active Directory domain of the DNS domain name that is provided. A query is then issued for the Host records for each parent domain controller returned. A DNS query is issued to locate the DNS servers and zones that are authoritative for the DNS records that this domain controller should register followed by a prerequisite-only " request to perform a dynamic update that probes the ability of the authoritative DNS servers and zones to process the dynamic updates.dcdiag /test:dcpromo /dnsdomain:test.example.microsoft.com /childdomain Starting test: DcPromo The DNS configuration is sufficient to allow this computer to be promoted as the first DC in the example.microsoft.com Active Directory domain. Messages logged below this line indicate whether this domain controller will be able to dynamically register DNS records required for the location of this DC by other devices on the network. If any misconfiguration is detected, it might prevent dynamic DNS registration of some records, but does not prevent successful completion of the Active Directory Installation Wizard. However, we recommend fixing the reported problems now, unless you plan to manually update the DNS database. DNS configuration is sufficient to allow this domain controller to dynamically register the domain controller Locator records in DNS. ......................... RANDYMC1 passed test DcPromo Adding an Additional Domain Controller to an Existing DomainIn the following example, a DNS query is issued for the SRV records for the DCs in the dnsdomain. A query is then issued for the Host records for each domain controller. A DNS query is issued to locate the DNS servers and zones that are authoritative for the DNS records that this domain controller should register followed by a "prerequisite-only " request to perform a dynamic update that probes the ability of the authoritative DNS servers and zones to process the dynamic updates.dcdiag /test:dcpromo /dnsdomain:example.microsoft.com /replicadc Starting test: DcPromo The DNS configuration is sufficient to allow this computer to be promoted as a replica domain controller in the example.microsoft.com domain. Messages logged below this line indicate whether this domain controller will be able to dynamically register DNS records required for the location of this DC by other devices on the network. If any misconfiguration is detected, it might prevent dynamic DNS registration of some records, but does not prevent successful completion of the Active Directory Installation Wizard. However, we recommend fixing the reported problems now, unless you plan to manually update the DNS database. DNS configuration is sufficient to allow this domain controller to dynamically register the domain controller Locator records in DNS. ......................... RANDYMC1 passed test DcPromo Testing Dynamic DNS Registration (DDNS)NOTE: The following procedure is useful to resolve the following event in the System Event log:Netlogon 5774 - Registration of the DNS record record name and DNS information failed. In the example below, a DNS query is issued to locate the DNS servers and zones authoritative for the DNS records that this domain controller should register followed by a "prerequisite-only " request to perform a dynamic update that probes an ability of the authoritative DNS servers and zones to process the dynamic updates.dcdiag /test:registerindns /dnsdomain:example.microsoft.com Starting test: RegisterInDNS DNS configuration is sufficient to allow this domain controller to dynamically register the domain controller Locator records in DNS. ......................... RANDYMC1 passed test RegisterInDNS Netdiag.exe Enhanced Error Messages when using the DSGetDC Test for Connectivity to Domain ControllersAn additional error message has been added to Netdiag.exe. Netdiag always tests the domain of which the computer is a member and the domain that you specify by using the /d switch when you perform the DSGetDC test. If the test passes for one of the domains, you do not receive the error message. To make sure that you receive the new error message, use the /v (verbose) or debug switch.If the DSGetDC test does not contact a DNS server, you receive the following error message: netdiag /test:dsgetdc /d:c.b.a.com /v or netdiag /test:dsgetdc
/d:c.b.a.com /debug Find DC in domain 'c.b.a.com': Verify that the network
connections on this computer are configured with the correct IP addresses of
the DNS servers to be used for name resolution, and then run this tool again.
[FATAL]Cannot find DC in domain 'c.b.a.com'. [ERROR_NO_SUCH_DOMAIN] netdiag /test:dsgetdc /d:c.b.a.com /v or netdiag /test:dsgetdc /d:c.b.a.com /debug Find DC in domain 'c.b.a.com': This computer cannot be joined to the [c.b.a.com] domain because of one of the following reasons: 1. The DNS SRV record for [c.b.a.com] is not registered in DNS; or 2. A zone from the following list of DNS zones does not include delegation to its child zone. Such zones can include [c.b.a.com, b.a.com, a.com, com], and root zone. Ask your network/DNS administrator to perform the following actions: To find out why the SRV record for [_ldap._tcp.dc._msdcs.c.b.a.com] is not registered in the DNS, run the dcdiag command prompt tool with the command RegisterInDNS on the domain controller that did not perform the registration. [FATAL]Cannot find DC in domain 'c.b.a.com'. [ERROR_NO_SUCH_DOMAIN] Steps to Resolve Common Configuration ProblemsTo configure the DNS client with a preferred and alternate DNS server:
Netdiag.exeCollapse this image ![]() Dcdiag.exeCollapse this image ![]() 119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
The DCDiag and NetDiag tests can be performed manually.
| Article Translations
|
Back to the top

