The domain controller is now the school's DNS server. Tell it where to send outside lookups, add a reverse zone and make sure clients use it.
Every device can find the domain and the internet by name.
Sign-in, Group Policy and domain join all depend on DNS pointing at the domain controllers.
Set a forwarder, add reverse zones, check the domain's records and point clients at the DC.
Every name, address and value in this guide is an example. Replace them with your own.
Send outside lookups to the firewall
The DC answers for ad.contoso.com itself. For anything else, such as microsoft.com, it asks the firewall.
Set-DnsServerForwarder -IPAddress 10.0.20.1 -PassThru Resolve-DnsName microsoft.com
If the firewall cannot resolve names, use your filtering provider's DNS servers instead.
Add a reverse lookup zone
A reverse zone turns addresses back into names. Tools such as nslookup and many monitoring systems expect it.
Add-DnsServerPrimaryZone -NetworkId "10.0.20.0/24" -ReplicationScope "Forest" Add-DnsServerPrimaryZone -NetworkId "10.0.50.0/24" -ReplicationScope "Forest" # one per network ipconfig /registerdns
Check the domain's DNS records
Devices find domain controllers through special SRV records. If these come back, the domain is visible on the network.
Resolve-DnsName -Type SRV _ldap._tcp.dc._msdcs.ad.contoso.com Resolve-DnsName -Type SRV _kerberos._tcp.ad.contoso.com
Clear out old records (optional)
Laptops leave old DNS records behind as their addresses change. Scavenging removes records nobody has refreshed in two weeks. Turn it on for one domain controller only.
Set-DnsServerZoneAging -Name "ad.contoso.com" -Aging $true -NoRefreshInterval 7.00:00:00 -RefreshInterval 7.00:00:00 Set-DnsServerScavenging -ScavengingState $true -ScavengingInterval 7.00:00:00
The golden rule for school DNS
Every domain-joined device must use the DCs for DNS, never the firewall or a public resolver. If it does not, joining the domain and signing in both fail. Set your DHCP scopes to hand out the DC address now, and both DC addresses once you add the second.
If Windows Server runs your DHCP:
Set-DhcpServerv4OptionValue -ScopeId 10.0.50.0 -DnsServer 10.0.20.10 -DnsDomain "ad.contoso.com"
If the firewall runs DHCP, set the DNS servers and domain name in each scope's settings.
Done when
The server resolves microsoft.com, both SRV lookups return CON-DC-01, and a PC on the device network gets 10.0.20.10 as its DNS server.


