A DNS conditional forwarder on Windows Server sends queries for one domain suffix to specific DNS servers, and leaves everything else to the general forwarders or root hints. Example: every query for partner.contoso.com goes to 10.20.0.5 and 10.20.0.6, while microsoft.com still goes out through your normal forwarders. You create one in DNS Manager under Conditional Forwarders or with Add-DnsServerConditionalForwarderZone, and decide two things up front: whether it lives on one server or replicates through Active Directory, and whether the namespace fails closed when the master servers stop answering.
This page covers the Windows Server DNS conditional forwarder: creation, AD integration, fail-closed behavior, timeouts, the stub-zone alternative, Azure Private DNS, and troubleshooting. Server-level forwarders, root hints, forwarder ordering, and provider selection belong to Windows Server DNS forwarders. General server-side DNS failures are covered in the troubleshooting section’s hand-off below.
- A conditional forwarder matches one domain suffix and sends those queries to fixed master server IPs.
- Store it in Active Directory when every DC in the scope should have it; keep it local when only one server needs it.
UseRecursionset to$falsemakes the namespace fail closed. Set it at creation or afterwards, and check the actual value rather than assuming a default.- The master servers must answer the query: either authoritative for the zone or willing to recurse for you.
- For Azure Private DNS from on-premises, point the forwarder at a Private Resolver inbound endpoint or an Azure forwarder VM, never at
168.63.129.16. - Use a stub zone instead only when the remote zone’s NS set changes and you want it tracked automatically.
What a DNS Conditional Forwarder Does
When a Windows DNS server receives a query it can’t answer from a local zone or its cache, it checks its conditional forwarders before the general forwarder list. If the queried name falls under a conditional forwarder’s domain, the query goes to that forwarder’s master servers. If not, normal forwarding or root-hints recursion applies. Internally, DNS Server stores each conditional forwarder as a forwarder zone, per Microsoft’s DNS forwarding documentation.
Typical uses:
- resolving a partner organization’s internal domain across a VPN or private link
- name resolution between two Active Directory forests, often before or alongside a trust
- reaching Azure Private DNS zones from on-premises
- a temporary path during a domain migration or merger
What it isn’t: a replacement for the general forwarder list, a way to host records, or a split-brain mechanism. For answering the same name differently inside and outside, see split brain DNS on Windows Server.
How to Add a Conditional Forwarder in DNS Manager
- Open DNS Manager (
dnsmgmt.msc) and expand the server. - Right-click Conditional Forwarders and choose New Conditional Forwarder.
- Enter the DNS Domain exactly as clients will query it, for example
partner.contoso.com. - Add the IP address of each master server. DNS Manager tries to validate each one.
- Decide whether to store the conditional forwarder in Active Directory, and pick the replication scope if you do.
- Leave or adjust Number of seconds before forward queries time out. The default is 5 seconds per master server.
- Click OK, then test from the server before telling anyone it works.
During step 4, DNS Manager can flag a master as not authoritative for the zone. That is common when the master is a recursive resolver rather than the authoritative server for the domain, and it isn’t by itself a failure. It isn’t proof of a healthy setup either. Record the warning, confirm the IP is the resolver you intended, test the exact namespace against it over UDP and TCP 53 (see the verification section), and only then accept the configuration.
How to Add a DNS Conditional Forwarder with PowerShell
Add-DnsServerConditionalForwarderZone `
-Name 'partner.contoso.com' `
-MasterServers 10.20.0.5, 10.20.0.6 `
-ReplicationScope 'Forest' `
-UseRecursion:$false `
-PassThruAdd-DnsServerConditionalForwarderZone accepts -UseRecursion at creation, so a private namespace can fail closed from the first query. Microsoft’s reference lists no default for the parameter. If you create the forwarder without it, check the resulting value instead of assuming one.
Omit -ReplicationScope for a local, registry-stored conditional forwarder on that server only. Use Domain, Forest, Legacy, or Custom (with -DirectoryPartitionName) when it should be AD-integrated. Specify every master server the remote side gives you, and write down who owns those endpoints before production traffic depends on them.
To change the master list, use Set-DnsServerConditionalForwarderZone:
Set-DnsServerConditionalForwarderZone -Name 'partner.contoso.com' -MasterServers 10.20.0.5, 10.20.0.7 -PassThruConditional forwarders are zones internally, so removal goes through Remove-DnsServerZone. Confirm the name and that ZoneType is Forwarder first: the same cmdlet deletes primary and secondary zones just as readily.
Get-DnsServerZone -Name 'partner.contoso.com' | Select-Object ZoneName, ZoneType
Remove-DnsServerZone -Name 'partner.contoso.com'There is no Get-DnsServerConditionalForwarderZone cmdlet in the DnsServer module. Read conditional forwarders through Get-DnsServerZone:
Get-DnsServerZone | Where-Object ZoneType -eq 'Forwarder'
Get-DnsServerZone -Name 'partner.contoso.com' | Format-List ZoneName, MasterServers, IsDsIntegrated, ReplicationScope, UseRecursion, ForwarderTimeoutActive Directory DNS Conditional Forwarders and Replication Scope
An AD-integrated conditional forwarder is stored in a directory partition and replicates to every DNS server on DCs in that scope. That is usually what you want in a multi-DC environment: create it once, and every DC resolves the partner domain the same way.
The scope decides where it lands:
| Scope | Where the conditional forwarder appears |
|---|---|
Forest | DNS servers on DCs in every domain of the forest |
Domain | DNS servers on DCs in this domain |
Legacy | All DCs in the domain, through the domain partition |
Custom | DCs enlisted in a specific application partition |
| (none) | Only the server where it was created |
Two things go wrong here. A conditional forwarder created locally on one DC never appears on the others, so clients pointed at a different DC fail while the first DC works perfectly. And an AD-integrated one only appears on another DC after AD replication has delivered it, so “it works on DC1 but not DC2 yet” right after creation can be a replication-timing question rather than a configuration one. For partition and scope design, see Active Directory DNS replication.
Fail Closed or Fall Back: UseRecursion
This is the setting that decides what happens when every master server fails to give a terminal answer.
Set-DnsServerConditionalForwarderZone `
-Name 'partner.contoso.com' `
-UseRecursion:$false `
-PassThruWith recursion disabled, the DNS server doesn’t try other DNS servers after the masters fail, and the query fails. The namespace fails closed. With recursion enabled, the server can try another recursive path, but only when server-wide recursion is enabled, an applicable path exists, and time remains in the server’s RecursionTimeout. For a private namespace, that fallback means sending internal-sounding names to general forwarders or public DNS.
Disable recursion when only the designated servers should resolve the namespace: a partner’s internal domain, an AD forest you reach over a private link, anything whose names mean nothing on the internet. Leave it on only when another recursive path is valid and harmless for that specific name. Check the current value rather than assuming one:
Get-DnsServerZone -Name 'partner.contoso.com' | Select-Object ZoneName, UseRecursionFail closed has a cost: a short master outage becomes a hard resolution failure for that domain. That is usually the right trade for a private namespace. It should still be a decision, not an accident.
Conditional Forwarder Timeout
Each conditional forwarder has its own timeout, separate from the server-level forwarder timeout. ForwarderTimeout accepts 0 to 15 seconds:
Set-DnsServerConditionalForwarderZone -Name 'partner.contoso.com' -ForwarderTimeout 3 -PassThruDon’t tune it in isolation. The server’s overall recursion timeout and the number of master servers both bound how many masters actually get tried. With several masters and a long per-forwarder timeout, the client can give up before the last master is ever asked. Microsoft’s forwarder and conditional-forwarder timeout guidance covers the interaction.
Conditional Forwarder vs Stub Zone
These solve the same problem through different mechanisms.
| Factor | Conditional forwarder | Stub zone |
|---|---|---|
| Stored data | Fixed master server IPs | SOA, NS, and glue records |
| Query destination | The configured masters | Authoritative servers learned from stub data |
| Needs zone transfer access | No | Yes, for stub refresh |
| Tracks NS changes | No | Yes |
| Fallback control | UseRecursion | Normal authoritative lookup |
| Best fit | Fixed resolver endpoints | Remote NS topology that changes |
| Azure DNS Private Resolver | Appropriate | Not appropriate (it’s recursive, not authoritative) |
A conditional forwarder needs nothing from the remote side except answers. A stub zone needs transfer permission on the remote master and direct reachability to every authoritative server it learns, including TCP 53. Those are the same requirements covered in Windows Server DNS zone transfer.
As a design default for SMB and homelab links, a conditional forwarder is usually enough: partner DNS server IPs rarely change without notice, and stub-zone transfer overhead isn’t worth it for one link. A stub zone earns its place when a different team owns the remote zone, restructures its name servers without telling you, and the integration is expected to last years.
DNS Conditional Forwarder for Azure Private DNS
168.63.129.16 is Azure’s platform virtual IP, reachable only from inside Azure virtual networks. An on-premises DNS server can’t use it as a master server. The supported patterns put something inside Azure to make that call:
- Preferred: the on-premises conditional forwarder points at an Azure DNS Private Resolver inbound endpoint, which resolves Azure Private DNS and Azure DNS.
- VM-based: the on-premises conditional forwarder points at a DNS forwarder VM in the VNet, which forwards to
168.63.129.16.
See Microsoft’s Azure DNS Private Resolver architecture for the current deployment pattern.
The namespace is the part that gets missed. For Private Endpoints, the zone to forward is often the service’s public zone (for example database.windows.net), not only the privatelink zone. It depends on the service, so check Microsoft’s Private Endpoint DNS integration guidance for the exact one. Forward the wrong zone and names resolve to public IPs while everything looks configured.
For private-only Azure namespaces, disabling recursion is normally the safer design: a Private Resolver outage then fails closed instead of quietly returning public addresses. Where public fallback is genuinely acceptable for a namespace, document it as a deliberate choice.
DNS Conditional Forwarder Not Working
When names under the forwarded domain don’t resolve, check in this order:
- Exact suffix. The conditional forwarder matches the domain name you typed.
partner.contoso.comdoesn’t covercontoso-partner.com, and a typo in the domain silently does nothing. - A hosted zone with the same name. If the server already hosts a primary, secondary, or stub zone with that name, it answers from that zone, and creating the conditional forwarder reports that the zone already exists.
- Which DNS server the client actually asked. Run
Resolve-DnsName host.partner.contoso.com -Server <dns-server> -DnsOnlyagainst the server that holds the forwarder. If it works there but not from the client, the client is using a different DNS server, or a local conditional forwarder exists on only one DC. - Is it present on that server?
Get-DnsServerZone -Name partner.contoso.com -ComputerName <server>. If it’s AD-integrated, confirm the scope includes that DC and replication has delivered it. - Master reachability over UDP and TCP 53.
Test-NetConnection <master-IP> -Port 53covers TCP only; pair it with a real query. - Do the masters answer?
Resolve-DnsName host.partner.contoso.com -Server <master-IP> -DnsOnly. A master that refuses recursion and isn’t authoritative for the zone returns REFUSED or nothing. - Fail-closed behavior. With recursion disabled, a brief master outage means no answer at all. That is expected, not a broken forwarder.
- Stale cache. After a fix, clear the server cache in a controlled window with
Clear-DnsServerCache -Forcebefore retesting, or an old negative answer can hide it.
If the masters answer correctly and the Windows server still fails, the problem is on the server side rather than in the conditional forwarder. Continue with Windows Server DNS troubleshooting, and check the DNS Server log against Windows Server DNS event IDs.
A conditional forwarder for a partner domain is created on the first DC only, without storing it in Active Directory. It works in testing because the test runs against that DC. Months later the first DC is in maintenance, clients fail over to the second DC, and the partner domain stops resolving. Nothing changed on the second DC. It never had the forwarder.
Verify a DNS Conditional Forwarder
# Configuration
Get-DnsServerZone -Name 'partner.contoso.com' | Format-List ZoneName, MasterServers, IsDsIntegrated, ReplicationScope, UseRecursion, ForwarderTimeout
# Through the Windows DNS server
Resolve-DnsName -Name 'host.partner.contoso.com' -Server 10.0.0.10 -DnsOnly
# Directly against each master
Resolve-DnsName -Name 'host.partner.contoso.com' -Server 10.20.0.5 -DnsOnly
Resolve-DnsName -Name 'host.partner.contoso.com' -Server 10.20.0.6 -DnsOnlyA correct answer through your server proves the path works today. It doesn’t prove the fail-closed behavior. If the namespace must never leak to public DNS, test that too, in a controlled window and not by blocking production paths casually: make the masters unreachable from a test server, query through it, and confirm the result is a failure rather than a public answer.
Final Thoughts
A DNS conditional forwarder is three decisions, not one: which servers answer, where the forwarder is stored, and what happens when those servers don’t answer. Partner domains and AD forest links usually want an AD-integrated forwarder with recursion disabled. A single lab server can keep a local one. Azure Private DNS from on-premises needs an inbound endpoint or forwarder VM in the middle, never the platform IP, and private-only Azure namespaces normally fail closed. If the remote side’s name servers keep moving, switch to a stub zone and accept the transfer dependency that comes with it.
FAQ
What is a DNS conditional forwarder?
A DNS conditional forwarder sends queries for one specific domain suffix to designated DNS servers. Everything else still goes to the general forwarders or root hints.
What is the difference between a forwarder and a conditional forwarder?
A forwarder handles every unresolved name the server can’t answer locally. A conditional forwarder only intercepts names under one domain and sends them to its own master servers, with its own timeout and fail-closed setting.
Should I store a conditional forwarder in Active Directory?
Yes, when more than one DC serves DNS to clients. A locally stored conditional forwarder exists on one server only, so clients using another DC won’t resolve the domain. Keep it local only for a single-server setup or a deliberately server-specific path.
Why does DNS Manager say the master server is not authoritative?
The master you entered answers as a resolver rather than as the authoritative server for that domain. That can be fine if it recurses for you. Test it with Resolve-DnsName -Server <master-IP> before accepting it.
Conditional forwarder or stub zone?
Conditional forwarder for fixed endpoints. Stub zone when the remote name servers change, you want them tracked, and you can get zone transfer access.
Can I use 168.63.129.16 as a conditional forwarder from on-premises?
No. That address is reachable only from inside Azure VNets. Use an Azure DNS Private Resolver inbound endpoint or a forwarder VM in Azure.
Windows Server DNS Series
11 articles – Zones & Configuration · Scavenging · Forwarders · Conditional Forwarders · AD DNS Replication · Split Brain DNS · Troubleshooting · Dynamic Updates · Event IDs · Deleted Records Recovery · Zone Transfers