AD.CLOUDSCHOOL.AI · PAGE 04 OF 14

Physical design: sites, subnets and site links

Sites, subnets, site links and costs, bridgeheads, DC placement, the DC locator and site coverage.

Why sites exist

A site is a group of IP subnets with fast, reliable links between them, usually one office or datacenter. Sites tell AD two things:

  • Which DC a client should use: clients look up DCs in their own site first, so logons stay local.
  • How to replicate: changes inside a site replicate within seconds; between sites they follow a schedule over site links, compressed.

Sites are independent of domains. One site can hold DCs of several domains, and one domain can span many sites.

Sites, subnets, site links and bridges

ObjectWhat to set
SiteOne per location with DCs or with enough users to care. Rename Default-First-Site-Name to something real.
SubnetEvery client and server subnet, IPv4 and IPv6, associated with exactly one site. Missing subnets cause slow logons from far-away DCs.
Site linkConnects two or more sites with a cost (lower is preferred), a replication interval (default 180 minutes, minimum 15) and a schedule. Transport: IP (RPC). SMTP is legacy.
Site link bridgeAll site links are bridged (transitive) by default. Turn off "Bridge all site links" only in non-routed networks and build bridges by hand.
Server object / NTDS SettingsEach DC appears under its site. NTDS Settings holds its connections and the GC flag.
New-ADReplicationSite -Name Athens
New-ADReplicationSubnet -Name "10.20.0.0/16" -Site Athens
New-ADReplicationSiteLink -Name "HQ-Athens" -SitesIncluded HQ,Athens -Cost 100 -ReplicationFrequencyInMinutes 15
Get-ADReplicationSite -Filter * | Select Name
Get-ADReplicationSubnet -Filter * | Select Name, Site

Common topologies

Hub and spoke

Datacenters as hubs, branches link only to their hub. Clear costs, predictable traffic. The most common enterprise design.

Full mesh

Every site links to every other. Fine for a few well-connected datacenters, noisy at scale.

Ring or cost-based fallback

A high-cost backup link lets replication continue when a primary WAN path fails.

Cloud as a site

Azure or AWS VNets become their own site with DCs as IaaS VMs and a site link to on-premises.

Domain controller placement

  • Two or more DCs in each hub or datacenter site, on different hosts and storage.
  • Branch sites: add a DC (often an RODC) only if the WAN is unreliable or logons must work offline; otherwise clients use the hub DC.
  • Make every DC a global catalog and DNS server, so a site never needs to cross the WAN for logon.
  • Applications that talk LDAP heavily (Exchange, identity sync) need DCs in their site.
  • Sites without DCs are still useful: automatic site coverage lets the nearest DC register for them, and you can steer it with costs.

How a client finds a DC (DC locator)

  1. Netlogon queries DNS for _ldap._tcp.dc._msdcs.corp.contoso.com SRV records.
  2. It pings candidates with LDAP over UDP 389. The first DC to answer tells the client which site its IP belongs to.
  3. If that site is different, the client queries _ldap._tcp.<Site>._sites.dc._msdcs.corp.contoso.com and switches to a DC in its own site.
  4. The result is cached; nltest /dsgetdc:corp.contoso.com /force repeats the search.
nltest /dsgetsite                      # which site am I in?
nltest /dsgetdc:corp.contoso.com       # which DC did I pick?
nltest /dclist:corp.contoso.com        # all DCs and their sites
Resolve-DnsName _ldap._tcp.HQ._sites.dc._msdcs.corp.contoso.com -Type SRV

Windows Server 2025 improved the locator's mapping of short NetBIOS-style names to DNS names and no longer uses mailslots.