Use this topic when clients select distant DCs, authentication is slow by location, or physical topology needs to be mapped into AD DS.
Sites
A site is a physical-topology construct independent of domains. IP subnets map clients to sites so Windows can prefer nearby domain controllers and AD replication can use site-aware topology/cost/scheduling.
1. Get-ADReplicationSite -Filter *.
2. Clients in the right site: nltest /dsgetsite.
3. Subnets mapped to sites.
4. DCs per site.
5. Site links for replication.
subnets → sites → client finds local DC → replication topology
Verify the selected DC service/data, or move to replication topology if intersite convergence is the symptom.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not create sites based solely on offices without matching subnets. Missing or overlapping subnet definitions often present as “random DC selection.”
Operational reference
Fast context before you go deeper.
Get-ADReplicationSite -Filter *Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Determine the client site from its actual address, query site-specific locator records and confirm the chosen DC is appropriate and reachable. Then test the workload.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Sites represent network topology, not organizational structure.
- A site can contain DCs from multiple domains.
- Client site selection depends on subnet mapping and locator behavior.
- Replication configuration uses sites/site links but deep replication belongs in the Replication branch.
Get-ADDomain— domain details and FSMO holdersGet-ADDomainController -Filter * | Select HostName,Site,IsGlobalCatalog— DCsdcdiag /v /e /q— DC health tests (errors only with /q)repadmin /replsummary— replication summarynltest /dsgetdc:<domain>— DC locator
ReferenceWhat it is1 section · depth on demand
Core model
Sites let the logical directory adapt to physical network topology. A client’s domain does not determine its site; its address/subnet mapping does. Correct site design reduces WAN authentication and replication inefficiency.
ReferenceImportant terms & boundaries2 sections · depth on demand
What the evidence shows
When a client uses the wrong DC, record client IP family/address, mapped subnet, detected site, DNS SRV answers and the final DC selected by Netlogon locator.
In depth
AD sites represent well-connected network locations. They control DC locator (clients prefer DCs in their own site), replication topology and SYSVOL/DFS referrals.
Get-ADReplicationSite -Filter *
New-ADReplicationSite -Name Branch-Aarhus
nltest /dsgetsite
nltest /dsgetdc:corp.example.com /force
Clients in subnets not mapped to any site use random DCs (event 5807 on DCs, logged in %SystemRoot%\debug\netlogon.log with NO_CLIENT_SITE entries) — keep subnet definitions complete.
ReferenceConfiguration & state1 section · depth on demand
Commands
Get-ADReplicationSite -Filter *
Get-ADReplicationSubnet -Filter * | Select Name,Site
nltest /dsgetsite
nltest /dsgetdc:example.com
Documented example, not captured output. Every client subnet must be mapped to a site; otherwise clients may authenticate against distant DCs (check DC netlogon.log for "NO_CLIENT_SITE").
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Active Directory Domain Services → Sites. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Active Directory Domain Services → Sites reference map
Fast lookup boundaries for Active Directory Domain Services → Sites.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Site | Well-connected location | not domain boundary |
| Subnet | IP prefix mapping | maps client to site |
| SRV records | Advertise site/DC capability | DNS dependent |
| Site link | Replication connectivity model | deep logic in Replication |