Question: how domain controllers are located in windows?
Answer: The answers is something called DC Locator Process. In a few words, DC Locator process is used by Windows systems to locate the closest available Domain Controller within an AD Domain. It relies on DNS resolution and AD Sites and Subnets configuration for the identification.