Click or drag to resize
Galactic API

ActiveDirectoryGetSiteDomainControllers Method

Gets the domain controllers associated with a specific Active Directory site from the Active Directory's DNS SRV records.

Namespace:  Galactic.ActiveDirectory
Assembly:  Galactic.ActiveDirectory (in Galactic.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static List<string> GetSiteDomainControllers(
	string domainName,
	string siteName
)

Parameters

domainName
Type: SystemString
The DNS domain name of the Active Directory to retrieve the domain controllers for.
siteName
Type: SystemString
The name of the site to retrieve the domain controllers for.

Return Value

Type: ListString
A list containing the FQDNs of the domain controllers in the specified site, or an empty list if they could not be retrieved.
See Also