
Active Directory, Part 1: Domain from Scratch — Planning, First Controller, DNS
🌐 Machine-translated from Russian. Show original
In this part:
Planning before installation#
- Domain name. Use a subdomain of the company's real domain, for example,
corp.example.kz. Do not use.local(conflicts with mDNS) and do not use the site's external domain (example.kz) — you will get DNS confusion. - NetBIOS name — short, up to 15 characters:
CORP. - At least two domain controllers (DC): one is a point of failure for the entire company's entry.
- Addressing: static IPs on controllers, DNS of clients points to controllers.
Installing the first controller#
- Windows Server with a permanent name (
DC01) and a static IP. - AD DS role via Server Manager or PowerShell:
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-ADDSForest -DomainName "corp.example.kz" -DomainNetbiosName "CORP" -InstallDns
- Set the Directory Services Recovery Mode (DSRM) password and save it in a secure location.
- After rebooting — check:
Get-ADDomain
dcdiag /q
DNS#
- Domain clients and servers use only controller DNS. If the client specifies the provider's DNS, domain login and group policies will be unstable.
- For the internet, set up forwarders on the DNS server to the provider's DNS or public ones.
- Create a lookback zone for your subnet.
Time#
Kerberos requires client and controller times to match (by default, a difference of up to 5 minutes is allowed). Synchronize the controller with the PDC emulator role with the external source:
w32tm /config /manualpeerlist:"pool.ntp.org" /syncfromflags:manual /reliable:yes /update
Other computers in the domain synchronize with controllers automatically.
Second controller#
On the second server:
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-ADDSDomainController -DomainName "corp.example.kz" -InstallDns -Credential (Get-Credential)
In DHCP, specify both controllers as DNS servers. Replication verification:
repadmin /replsummary
Entering computers into the domain#
Add-Computer -DomainName "corp.example.kz" -Credential CORP\admin -Restart
Next comes the division structure and accounts.
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.