Split-Brain DNS on Windows Server with DNS Policy: Zone Scopes, Interface and Client Subnet Policies, AD Zones

Set up split-brain DNS on one Windows Server 2016+ DNS server: Add-DnsServerZoneScope, records per zone scope, server interface or client subnet policies, AD-integrated zones (policies do not replicate) and removal.

Home › Guides › Split-brain DNS with DNS policy

Last updated 23 November 2026

Quick answer

On Windows Server 2016 and later one DNS server can answer the same name differently for internal and external clients (split-brain DNS) by using zone scopes and a zone level DNS policy. A zone scope is another instance of the zone with its own records; every zone already has a default scope with the same name as the zone. Create the second scope with Add-DnsServerZoneScope -ZoneName "contoso.com" -Name "internal", add the record to both scopes (with -ZoneScope "internal" for the internal copy, without it for the default copy), then point queries at the new scope with Add-DnsServerQueryResolutionPolicy -Action ALLOW -ZoneScope "internal,1" -ZoneName contoso.com plus a criterion: the server interface that received the query, or a client subnet. Queries that match no policy get the default scope, so no policy is needed for it. For Active Directory integrated zones the scopes and their records replicate, but the policies do not: create them on every DNS server that hosts the zone. Dynamic updates and scavenging only work in the default scope.

Microsoft's two split-brain examples side by side

Both Microsoft Learn articles use the same Contoso site, www.career.contoso.com, with an internal address of 10.0.0.39 and a public address of 65.55.39.10. They differ in which version lives in the default scope.

ItemSingle DNS server (file-backed zone)Active Directory integrated zone
Default zone scope holdsThe external (public) versionThe internal version
New zone scopeinternalexternal
Policy matches queries received onThe private interface, 10.0.0.56The public interface, 208.84.0.53
Policy command-ServerInterface "eq,10.0.0.56" -ZoneScope "internal,1"-ServerInterface "eq,208.84.0.53" -ZoneScope "external,1"
Zone scopes and recordsStored on that serverReplicate through Active Directory with their scopes
DNS policiesStored on that serverNot Active Directory integrated; stored on each server, copy them yourself
Dynamic updates and scavengingNot covered in this article (the AD article says they work only in the default scope)Default scope only, which is why the internal, dynamically updated records stay there

How the DNS server picks a scope

Each query is checked against the policies on the server. In both examples the criterion is the server interface the query arrived on: if it matches a policy, the zone scope named in that policy answers; if not, the default scope answers, which Microsoft describes as the same as normal query resolution. The Add-DnsServerQueryResolutionPolicy reference adds the order: server level policies first (except recursion policies), then zone level policies, then recursion policies. Zone level policies apply only when the query is for a zone hosted on the server, and removing a zone deletes its zone level policies. With -Action ALLOW a zone level policy decides which zone scopes answer and in what ratio; -ZoneScope takes Scope01, Weight01; Scope02, Weight02;, so "internal,1" means the internal scope with weight 1. New policies apply without restarting the DNS server, except on read-only domain controllers, where the DNS Server service must be restarted to load them (DNS Policies Overview).

Step 1: create the zone scope

Add-DnsServerZoneScope -ZoneName "contoso.com" -Name "internal"
Get-DnsServerZoneScope -ZoneName "contoso.com"

From the cmdlet reference: the scope name follows the same conventions as a zone name and cannot be the same as the zone name. A new scope's data is kept in %Systemroot%\system32\dns\<zone name>\<scope name>.dns. Without -LoadExisting the cmdlet creates default zone records automatically; with it, the server loads the scope from an existing file. Get-DnsServerZoneScope lists the default scope (shown with the zone's own name, for example contoso.com contoso.com.dns) and every added scope; add -Name to get one. For an Active Directory integrated zone Microsoft says the scope and its records replicate through Active Directory to the other DNS servers in the domain; whether the .dns file path applies to AD integrated zones is not covered in Microsoft's articles. Zone transfers also work per scope: records in a scope of a primary zone go to the same scope in the secondary zone (DNS Policies Overview).

Step 2: add the record to each scope

Microsoft's single-server example (the AD example is the same with the scope names swapped):

Add-DnsServerResourceRecord -ZoneName "contoso.com" -A -Name "www.career" -IPv4Address "65.55.39.10"
Add-DnsServerResourceRecord -ZoneName "contoso.com" -A -Name "www.career" -IPv4Address "10.0.0.39" -ZoneScope "internal"

Leave out -ZoneScope to write to the default scope, exactly as with a zone that has no scopes. Both Microsoft articles print the second command with a curly closing quote after 10.0.0.39 and run the two commands together on one line in the single-server page; the version above uses straight quotes and one command per line. Get-DnsServerResourceRecord also has a -ZoneScope parameter, so Get-DnsServerResourceRecord -ZoneName "contoso.com" -ZoneScope "internal" should list that scope's records (my example built from the parameter list, not one of Microsoft's). What the server answers when a name exists in the default scope but not in the scope a policy picked is not covered in Microsoft's articles, so add every split name to both scopes.

Step 3: create the policy

By server interface (Microsoft's single-server example; 10.0.0.56 is the private interface):

Add-DnsServerQueryResolutionPolicy -Name "SplitBrainZonePolicy" -Action ALLOW -ServerInterface "eq,10.0.0.56" -ZoneScope "internal,1" -ZoneName contoso.com

The articles use -ServerInterface; the cmdlet reference syntax lists the parameter as -ServerInterfaceIP. Using the full name in scripts is my suggestion, not Microsoft's.

By client subnet: both articles mention this as the other way to tell internal from external clients and point to the geo-location article for the commands. The pattern from Microsoft's Add-DnsServerQueryResolutionPolicy example, adapted to the split-brain names (the subnet name and 10.0.0.0/24 are placeholders; Microsoft's split-brain pages don't show this command):

Add-DnsServerClientSubnet -Name "InternalSubnet" -IPv4Subnet "10.0.0.0/24"
Add-DnsServerQueryResolutionPolicy -Name "SplitBrainSubnetPolicy" -Action ALLOW -ClientSubnet "eq,InternalSubnet" -ZoneScope "internal,1" -ZoneName "contoso.com"

The geo-location article warns that DNS policies use the sender IP of the packet: if a query passes through other resolvers or forwarders, the policy sees only the last resolver that sent it to this server. So if internal clients reach this server through another resolver, that resolver's address is what has to be in the client subnet (my reading of that note, not a split-brain example).

Active Directory integrated zones

Microsoft's AD example creates the zone with Add-DnsServerPrimaryZone -Name "contoso.com" -ReplicationScope "Domain" -PassThru, then Add-DnsServerZoneScope -ZoneName "contoso.com" -Name "external", adds 65.55.39.10 with -ZoneScope "external" and 10.0.0.39 to the default scope, and creates the policy on the public interface:

Add-DnsServerQueryResolutionPolicy -Name "SplitBrainZonePolicy" -Action ALLOW -ServerInterface "eq,208.84.0.53" -ZoneScope "external,1" -ZoneName contoso.com

The default scope holds the internal version because dynamic DNS updates and scavenging are supported only on the default zone scope; records in a non-default scope get neither, so keep the clients that register themselves in the default scope. DNS policies are stored on the local DNS server and are not replicated to the other servers hosting the zone. Microsoft's example copies a zone's policies from one server to another:

$policies = Get-DnsServerQueryResolutionPolicy -ZoneName "contoso.com" -ComputerName Server01
$policies | Add-DnsServerQueryResolutionPolicy -ZoneName "contoso.com" -ComputerName Server02

An interface criterion contains that server's own IP address, so a copied interface policy needs its address changed on each server; that follows from the examples but isn't stated by Microsoft. Client subnet policies refer to client subnet objects, and whether those are copied with the policies is not covered in Microsoft's articles; create them on each server.

Recursion for internal clients only

The single-server article's second scenario, selective recursion control, keeps the server authoritative for everyone but resolves Internet names only for internal clients: disable recursion in the default recursion scope, add a scope with recursion enabled and a recursion policy (-ApplyOnRecursion -RecursionScope) on the internal interface. Queries for names outside your zones never reach zone level policies. The commands and the open resolver background are in the cache snooping and recursion scope guide. One catch in the split-brain page: its recursion policy matches -ServerInterfaceIP "EQ,10.0.0.39", which is the internal web server address in the same article, while the server's private interface is 10.0.0.56. Use your DNS server's own internal interface address.

Remove a scope or undo split-brain

Remove-DnsServerZoneScope -ZoneName "contoso.com" -Name "internal"
Get-DnsServerZoneScope -ZoneName "contoso.com" | Remove-DnsServerZoneScope -Force -PassThru

You can't delete the default scope; the second line, Microsoft's example, removes all the other scopes of the zone. Remove the policy that uses a scope with Remove-DnsServerQueryResolutionPolicy (see the DNS policy query filters guide for Get, Set and Remove). What happens to a policy whose zone scope was deleted first is not covered in Microsoft's articles.

When internal clients still get the public address

Related tools and guides

Look up DNS Server events such as 4013 and 4015 in the Windows Event ID Lookup, copy the zone scope and DNS policy lines from the PowerShell Cheat Sheet, pull host names out of exported zone files with the Regex Tester, work out the internal client subnets for a subnet policy with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the adapters on a multihomed DNS server with the MAC Vendor Lookup. Related guides: DNS server cache snooping and recursion scopes, DNS policy query filters, DNS scavenging not working, multihomed domain controllers registering the wrong NIC and common Windows DNS Server and DHCP Server errors.

Running the same zone scopes on secondary servers, or restricting who can transfer the zone? See zone transfer policies and DNS policy on secondary servers.

Answering by region or splitting traffic across datacenters instead? See geo-location DNS policy and weighted load balancing.

Every Windows DNS Server and DHCP Server event and symptom in one place: common Windows DNS Server and DHCP Server errors.

FAQ

Can one Windows DNS server give internal and external clients different answers?

Yes, on Windows Server 2016 and later. Add a zone scope to the zone, put the internal and external versions of the record in different scopes, and create a zone level DNS policy that sends queries from the internal interface or client subnet to the matching scope.

What is a DNS zone scope?

A zone scope is a separate instance of a zone with its own set of records. Every zone has a default scope with the same name as the zone, and normal DNS operations work on it. You add more with Add-DnsServerZoneScope and write records to them with -ZoneScope.

Do DNS policies replicate with Active Directory integrated zones?

No. Zone scopes and their records replicate through Active Directory, but DNS policies are stored on each DNS server. Copy them with Get-DnsServerQueryResolutionPolicy piped into Add-DnsServerQueryResolutionPolicy -ComputerName for each server.

Do dynamic updates work in a zone scope?

Only in the default zone scope. Microsoft says dynamic DNS updates and scavenging are supported only on the default scope, so its Active Directory example keeps the internal records in the default scope and puts the public version in an external scope.

Do I need a policy for the default zone scope?

No. Queries that match no policy are answered from the default scope, the same as normal query resolution. You only create policies for the added scopes.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.