dict = DsGetDcName(computerName, domainName , domainGUID , siteName , flags )
Returns the name of a domain controller (DC) in a specified domain. You can supply DC selection criteria to this function to indicate preference for a DC with particular characteristics.