A new domain controller runs DNS on Windows defaults. These settings stop outsiders copying the zone, stop unknown devices changing records and make the DNS service harder to poison.
The DNS service on your domain controllers is harder to abuse.
Default settings allow zone copies, and leave the cache and updates less protected than they could be.
Allow secure updates only, turn off zone transfers, lock the cache and log rate limiting.
What runs where
| Setting | Where to run it |
|---|---|
| Zone settings (steps 1 and 2) | One domain controller. Active Directory copies them to the others. |
| Server settings (steps 3 and 4) | Every domain controller. They do not copy across. |
Allow secure updates only and turn off zone transfers
Secure updates mean only domain-joined computers can register or change records. Turning off zone transfers stops anyone downloading the full list of your servers and devices. Domain controllers do not need zone transfers, because they share zones through Active Directory.
$zones = Get-DnsServerZone | Where-Object { $_.ZoneType -eq 'Primary' -and $_.IsDsIntegrated -and -not $_.IsAutoCreated -and $_.ZoneName -ne 'TrustAnchors' }
foreach ($z in $zones) {
Set-DnsServerPrimaryZone -Name $z.ZoneName -DynamicUpdate Secure
Set-DnsServerPrimaryZone -Name $z.ZoneName -SecureSecondaries NoTransfer
}This covers the domain zone, the _msdcs zone and any reverse zones.
Check the zones
Get-DnsServerZone | Where-Object { -not $_.IsAutoCreated } |
Format-Table ZoneName, IsDsIntegrated, DynamicUpdate, SecureSecondaries -AutoSizeEvery row should read True, Secure, NoTransfer.
Lock the cache
Cache locking stops a cached answer being overwritten before it expires, which is how cache poisoning works. 100 is the default, so this puts it back if someone has lowered it.
Set-DnsServerCache -LockingPercent 100
Turn on response rate limiting in log-only mode
Rate limiting stops the server being used to flood another machine with DNS answers. Log-only mode records what it would have limited and blocks nothing.
Set-DnsServerResponseRateLimiting -Mode LogOnly -Force Get-DnsServerResponseRateLimiting
PowerShell prints a warning that the mode only logs. That is expected.
The limit counts answers per network, so a whole room of PCs signing in at 9am counts as one client. Leave it in log-only mode until you have checked the limits shown by the second command against a busy morning.
Check the block list
Windows refuses to answer for two names that attackers like to register, wpad and isatap. Make sure the list is still on.
Get-DnsServerGlobalQueryBlockList | Format-List Enable, List
You should see Enable : True and both names in the list.
Keep DnsAdmins empty
Members of the DnsAdmins group can make the DNS service load their own code on a domain controller. Treat it like Domain Admins and keep it empty.
Get-ADGroupMember -Identity DnsAdmins | Format-Table Name, objectClass -AutoSize
Nothing back is the right answer.
Related guides
- Set up DNS on a domain controller covers reverse zones and clearing out old records.
- Block wildcard DNS records stops users creating a
*record.
Done when
Every zone shows Secure and NoTransfer, both domain controllers have cache locking at 100 and rate limiting in log-only mode, the block list is on and DnsAdmins has no members.


