You can output a list of all DCs in a domain by running the Nltest command (which is included in the Support Tools) and specifying the /dclist parameter. The following sample command generates a list of all DCs in the contoso.com domain:

nltest /dclist:contoso.com