Troubleshooting

Windows Server 2025 DNS Server Setup: Zone Configuration, Forwarders, and Troubleshooting Common Issues

The Back Room Tech Staff · Edited by Aseem Kishore
22 min read

The Back Room Tech is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

This guide walks through a Windows Server 2025 DNS Server setup from start to finish. You’ll install the role, pick the right zone type, set up forwarders and conditional forwarders, and lock down zone transfers. You’ll also get a repeatable way to tell whether a lookup failure is local, at the forwarder, or upstream. There’s no DNS-101 here. Each step gives you the GUI path, the PowerShell equivalent, and what you should see when it works.

The short answer: For a single server, run Install-WindowsFeature -Name DNS -IncludeManagementTools from an elevated PowerShell session. It’s faster than the wizard and works the same in scripted builds. Create your zones, then set server-level forwarders for internet names. Add conditional forwarders only for specific partner or branch namespaces. Pick the zone type by role:

  • AD-integrated primary if the server is a domain controller
  • File-backed primary for a standalone homelab
  • Secondary or stub at a branch office

Windows Server 2025 DNS Server Setup: Quick Reference

ScenarioRecommended ApproachKey Cmdlet
Install the role fastPowerShell, not the wizardInstall-WindowsFeature
New AD domainAD-integrated primary zoneAdd-DnsServerPrimaryZone -ReplicationScope
Standalone homelab (no AD)File-backed primary zoneAdd-DnsServerPrimaryZone -ZoneFile
Branch office read-only copySecondary zoneAdd-DnsServerSecondaryZone
Track another zone’s name servers onlyStub zoneAdd-DnsServerStubZone
Resolve internet namesServer-level forwardersSet-DnsServerForwarder
Resolve one partner namespaceConditional forwarderAdd-DnsServerConditionalForwarderZone
Stop zone data leakingRestrict zone transfersSet-DnsServerPrimaryZone -SecureSecondaries
“Can’t resolve X” ticketResolve-DnsName against each hopResolve-DnsName -Server

What Is the DNS Server Role in Windows Server 2025?

The DNS Server role is the built-in name resolution service in Windows Server. It ships with the OS. You add it as a server role, then manage it with the DNS Manager console (dnsmgmt.msc) or the DnsServer PowerShell module. One server can host primary, secondary, stub, Active Directory–integrated, and reverse lookup zones. It also controls where unresolved queries go: forwarders, conditional forwarders, or root hints.

Windows Server 2025 is the current Long-Term Servicing Channel (LTSC) release. It reached general availability on November 1, 2024, per Microsoft’s Windows Server release information. The DNS tools are largely the same ones you’ve used before.

Microsoft’s zone management and forwarding docs cover Server 2016, 2019, 2022, and 2025, but Microsoft doesn’t state that every dialog, cmdlet parameter, or default behaves identically across all four releases. The console and cmdlets in this guide should look and work similarly to what you know from older versions, so verify any exact wording or option against your own build.

Prerequisites

  • Windows Server 2025 Standard or Datacenter edition. Both include the DNS Server role (pricing and editions; MSRP is U.S. reference pricing and varies by reseller and region).
  • A static IPv4 address on the server’s network adapter is strongly recommended, even though it isn’t an absolute installation requirement for the DNS Server role. Clients find the server by a fixed IP, whether you type it in or hand it out through DHCP options, so if the server’s own dynamic lease ever changes, every client still points at the old address. A DHCP reservation also keeps the address stable, but a static assignment removes the dependency entirely.
  • Administrator rights: a local Administrators member or, in a domain, Domain Admins or DnsAdmins.
  • UDP and TCP port 53 open between this server, its clients, any upstream forwarders, and any secondary servers.
  • An elevated PowerShell session. Right-click Windows PowerShell > Run as administrator.
  • (Optional) AD DS already promoted, if you want AD-integrated zones. Promoting a domain controller usually installs DNS for you anyway.
  • (Homelab) Stable hardware and power. A small mini PC or a Proxmox VM works fine. Put the host on a UPS. A DNS server that drops during a power blip takes the whole network’s name resolution with it.
RequirementDetails
OSWindows Server 2025 Standard or Datacenter
RoleDNS Server (installed via Server Manager or Install-WindowsFeature)
Management toolsDNS Manager (dnsmgmt.msc), DnsServer PowerShell module
NetworkStatic IP recommended; UDP/TCP 53 allowed
AccountLocal admin, Domain Admins, or DnsAdmins
Client platformsNot applicable. This is a Windows Server–only role

Example Environment

These are example values. Swap in your own.

ItemValue
Primary DNS serverDNS1, 192.168.10.10
Secondary DNS serverDNS2, 192.168.10.11
Internal zonecorp.example.com
Reverse zone192.168.10.0/24 (10.168.192.in-addr.arpa)
Partner namespacepartner.example.net, served by 10.20.0.10
Upstream forwarders1.1.1.1, 9.9.9.9

Step-by-Step Guide

Step 1: Install the DNS Server Role

You have two options. PowerShell is faster: one command, no clicking, and it drops straight into a build script. Use the wizard if you want to see what’s being installed.

Option A: PowerShell (recommended)

# -Name DNS is the feature name for the DNS Server role
# -IncludeManagementTools adds DNS Manager and the DnsServer PowerShell module
Install-WindowsFeature -Name DNS -IncludeManagementTools

Expected output (feature list wording may vary slightly):

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
True    No             Success        {DNS Server, DNS Server Tools, ...}

Confirm the install state:

Get-WindowsFeature -Name DNS, RSAT-DNS-Server
Display Name                                            Name                Install State
------------                                            ----                -------------
[X] DNS Server                                          DNS                     Installed
        [X] DNS Server Tools                            RSAT-DNS-Server         Installed

Note: Install-WindowsFeature -Name DNS -IncludeManagementTools is the long-standing Windows Server syntax. If you’re building an automated pipeline, check the parameter set against the current Microsoft Learn reference for your build.

Option B: Server Manager

  • Open Server Manager and click Manage > Add Roles and Features.
  • Choose Role-based or feature-based installation and select your server from the pool.
  • On Server Roles, check DNS Server. When prompted, click Add Features to include the management tools.
  • Click through to Confirmation and click Install.
Server Manager Add Roles and Features Wizard on Windows Server 2025, Server Roles page with the DNS Server checkbox selected and the "Add features that are required for DNS Server" prompt visible

If a label on your build differs, look for the Server Roles page and the DNS Server checkbox.

Expected result: On a typical install the role doesn’t require a reboot (the PowerShell output’s RestartNeeded column and the wizard’s Results page both tell you if one is needed), and DNS appears in Server Manager’s left pane.

Step 2: Open DNS Manager and Check the Basics

Launch the console:

dnsmgmt.msc

You can also go to Start > Windows Tools (labeled Windows Administrative Tools on some installs) > DNS. Expand the server node. You’ll see Forward Lookup Zones, Reverse Lookup Zones, Trust Points, and Conditional Forwarders.

Before you build anything, check two things. First, see which interfaces the service listens on:

# AllIPAddress = every IP on the server; ListeningIPAddress = the IPs the DNS service answers on
Get-DnsServerSetting -All | Select-Object ListeningIPAddress, AllIPAddress

On a multi-homed box, such as one with a management NIC and a storage NIC, restrict listening to the client-facing IP. It’s under Server Properties > Interfaces > Only the following IP addresses.

Second, check that the firewall allows DNS traffic:

# Starting point only: rule names and groups vary, so review the Group, Profile and Enabled columns
Get-NetFirewallRule -DisplayName "*DNS*" | Format-Table DisplayName, Group, Profile, Enabled, Direction

A name match isn’t proof either way, because local or Group Policy rules can use other names. The reliable check is from a client:

# Run on a client; replace the IP with your DNS server's address
Test-NetConnection -ComputerName 192.168.10.10 -Port 53
Resolve-DnsName -Name dns1.corp.example.com -Server 192.168.10.10

If the service is running but clients time out here, look at the firewall rules and profiles on the server before you continue.

Step 3: Pick the Right Zone Type

This is where most setups go wrong. Use the table below. It’s based on the zone types in Microsoft’s Manage DNS zones guide.

Zone typeWhat it holdsUse it when
AD-integrated primaryWritable copy stored in AD and replicated by AD replicationNew AD domain. Every DC running DNS gets the zone automatically
Standard (file-backed) primaryWritable copy in a .dns file on this serverHomelab or standalone server with no AD
SecondaryRead-only copy pulled via zone transferBranch office or backup server that needs a local, authoritative copy
StubOnly the SOA, NS, and glue A records for another zoneYou want to follow another zone’s name servers without holding all its data
Reverse lookupPTR records for an IP rangeAny environment where you want IP-to-name lookups (logging, SSH, monitoring)

My recommendations:

  • New domain: Use AD-integrated. You get multi-master replication and secure dynamic updates.
  • Branch office: If the branch has a DC, it already gets AD-integrated zones. If it doesn’t, use a secondary zone.
  • Homelab without AD: Use a file-backed primary. It’s simple and portable, and you can add a secondary on a second box later.

Step 4: Create a Forward Lookup Zone

GUI path:

  • In DNS Manager, right-click Forward Lookup Zones > New Zone.
  • Click Next on the welcome page.
  • On the Zone Type page, choose Primary zone. Check Store the zone in Active Directory only if this server is a writable domain controller. The checkbox is greyed out otherwise.
  • If you chose AD storage, pick a replication scope, such as all DNS servers in the domain or in the forest.
  • Enter the zone name (corp.example.com).
  • For a file-backed zone, accept the default file name (corp.example.com.dns).
  • On Dynamic Update, choose Allow only secure dynamic updates for AD-integrated zones. For file-backed zones, choose Do not allow dynamic updates unless you need them.
  • Click Finish.
DNS Manager New Zone Wizard on Windows Server 2025 showing the Zone Type page with Primary zone, Secondary zone, and Stub zone radio buttons and the "Store the zone in Active Directory" checkbox

PowerShell, AD-integrated (on a DC):

# -ReplicationScope Forest replicates to every DNS server in the forest
# Use "Domain" to limit replication to DNS servers in this domain only
Add-DnsServerPrimaryZone -Name "corp.example.com" -ReplicationScope "Forest" -DynamicUpdate "Secure" -PassThru

PowerShell, file-backed (homelab or standalone):

# -ZoneFile creates a standard primary zone stored in %SystemRoot%\System32\dns
Add-DnsServerPrimaryZone -Name "corp.example.com" -ZoneFile "corp.example.com.dns" -DynamicUpdate "None" -PassThru

Expected output (abbreviated):

ZoneName                            ZoneType        IsAutoCreated   IsDsIntegrated  IsReverseLookupZone  IsSigned
--------                            --------        -------------   --------------  -------------------  --------
corp.example.com                    Primary         False           False           False                False

Secure dynamic updates are available only for AD-integrated zones (Microsoft’s cmdlet reference says the same), and clients authenticate those updates with Kerberos (GSS-TSIG). Domain-joined Windows clients do this out of the box. Linux hosts joined to AD (for example with SSSD or Samba) can do it too. Printers and other devices that can’t authenticate need static records or updates registered on their behalf by DHCP.

Step 5: Create a Reverse Lookup Zone

GUI: Right-click Reverse Lookup Zones > New Zone. Choose Primary zone and IPv4 Reverse Lookup Zone, then enter the network ID (192.168.10). Finish the wizard with the same dynamic update choice you made for the forward zone.

PowerShell:

# -NetworkId builds the in-addr.arpa name for you (10.168.192.in-addr.arpa)
# On a domain controller (AD-integrated):
Add-DnsServerPrimaryZone -NetworkId "192.168.10.0/24" -ReplicationScope "Domain" -PassThru

# On a standalone server (file-backed, no dynamic updates):
Add-DnsServerPrimaryZone -NetworkId "192.168.10.0/24" -ZoneFile "10.168.192.in-addr.arpa.dns" -DynamicUpdate "None" -PassThru

Step 6: Add a Test Record

You need at least one record to test against. Adding -CreatePtr fills in the reverse zone at the same time:

# -CreatePtr adds the matching PTR record in the reverse zone from Step 5
Add-DnsServerResourceRecordA -ZoneName "corp.example.com" -Name "app01" -IPv4Address "192.168.10.50" -CreatePtr

Verify it locally:

Resolve-DnsName -Name "app01.corp.example.com" -Server 127.0.0.1
Name                                           Type   TTL   Section    IPAddress
----                                           ----   ---   -------    ---------
app01.corp.example.com                         A      3600  Answer     192.168.10.50

Step 7: Configure Server-Level Forwarders

The two forwarder types handle different traffic:

  • Server-level forwarders get the queries your server can’t answer from its own zones, delegations, conditional forwarders, or cache, as long as recursion is enabled.
  • Conditional forwarders catch queries for one specific namespace and send them to set servers. Everything else still takes the normal path.

Use server-level forwarders for “the internet” and conditional forwarders for “that one partner domain.”

GUI path:

  • In DNS Manager, right-click the server name > Properties > Forwarders tab.
  • Click Edit…, enter each upstream IP (for example 1.1.1.1 and 9.9.9.9), and wait for validation. The dialog tries to resolve each server’s FQDN. A red X or timeout here means the dialog couldn’t get an answer from that IP. That can be a network or firewall problem, or an upstream that won’t answer your server, so test it with Resolve-DnsName -Server before you assume which.
  • Click OK.
  • Decide on Use root hints if no forwarders are available. It’s enabled by default. Leave it on if you want the server to fall back to the internet root servers when forwarders fail. Turn it off if policy requires all lookups to go through specific resolvers, such as a filtering service.
DNS server Properties dialog open to the Forwarders tab showing the forwarder IP list, the Edit button, the "Use root hints if no forwarders are available" checkbox, and the Edit Forwarders dialog with two upstream IPs entered

PowerShell:

# View the current forwarder configuration
Get-DnsServerForwarder
UseRootHint        : True
Timeout(s)         : 3
EnableReordering   : True
IPAddress          :
ReorderedIPAddress :
# Set-DnsServerForwarder REPLACES the whole list; Add-DnsServerForwarder appends
# -UseRootHint $true keeps root-hint fallback enabled
Set-DnsServerForwarder -IPAddress "1.1.1.1", "9.9.9.9" -UseRootHint $true -PassThru
UseRootHint        : True
Timeout(s)         : 3
EnableReordering   : True
IPAddress          : {1.1.1.1, 9.9.9.9}
ReorderedIPAddress : {1.1.1.1, 9.9.9.9}
Elevated PowerShell console on Windows Server 2025 showing Get-DnsServerForwarder output with an empty IPAddress list, followed by Set-DnsServerForwarder setting 1.1.1.1 and 9.9.9.9 and the updated IPAddress property

Warning: Set-DnsServerForwarder -IPAddress overwrites the existing list. If you only want to add one resolver, use Add-DnsServerForwarder -IPAddress "9.9.9.9" instead.

A note for domain controllers: put the forwarders in this list, not on the DC’s network adapter. The DC’s NIC should point at itself or at another DC. Set public resolvers on a DC’s adapter and the DC can’t find its own domain’s SRV records. AD then breaks in subtle, annoying ways.

Step 8: Add a Conditional Forwarder

GUI path:

  • In DNS Manager, right-click Conditional Forwarders > New Conditional Forwarder…
  • Enter the DNS Domain exactly (partner.example.net).
  • Under IP addresses of the master servers, add 10.20.0.10.
  • On a DC, you can check Store this conditional forwarder in Active Directory and choose a replication scope (domain or forest). Every DC then gets the forwarder, and you don’t have to set up each one by hand.
  • Click OK.

PowerShell:

# -MasterServers: the DNS servers authoritative for (or able to resolve) that namespace
# -ReplicationScope Forest stores it in AD; omit it on a non-DC server
Add-DnsServerConditionalForwarderZone -Name "partner.example.net" -MasterServers "10.20.0.10" -ReplicationScope "Forest" -PassThru

When the partner changes their DNS server IPs, update the master list in place with Set-DnsServerConditionalForwarderZone:

# Replaces the master server list for the existing conditional forwarder
Set-DnsServerConditionalForwarderZone -Name "partner.example.net" -MasterServers "10.20.0.10", "10.20.0.11" -PassThru

Step 9: Restrict Zone Transfers and Build the Secondary

Before you stand up DNS2, lock down which servers can pull the zone from DNS1.

GUI path (on DNS1):

  • Right-click the zone > Properties > Zone Transfers tab.
  • Check Allow zone transfers.
  • Choose Only to the following servers and add 192.168.10.11. Or choose Only to servers listed on the Name Servers tab if you keep your NS records accurate.
  • Avoid To any server. That option lets any host that can reach port 53 download your entire internal zone.
  • Click Notify… and add the secondary too. It then hears about zone changes right away and doesn’t wait for its refresh interval.

The GUI handles both the transfer restriction and the notify list in one pass, and it’s the most reliable way to set notify behavior. If you only need the restriction scripted, PowerShell works fine for that part alone.

PowerShell (on DNS1):

# -SecureSecondaries accepts NoTransfer, TransferAnyServer, TransferToZoneNameServer, TransferToSecureServers
# TransferToSecureServers + -SecondaryServers limits transfers to the listed IPs
Set-DnsServerPrimaryZone -Name "corp.example.com" -SecureSecondaries "TransferToSecureServers" -SecondaryServers "192.168.10.11" -PassThru

Microsoft’s Set-DnsServerPrimaryZone reference (WS2025) lists those four values and describes -SecondaryServers as the IPs allowed to receive the zone through transfers, so this matches the GUI’s Only to the following servers option. Confirm the result in the zone’s Zone Transfers tab. The command doesn’t touch zone-change notifications. To script notifications as well, use the cmdlet’s -Notify and -NotifyServers parameters:

# Send NOTIFY only to the listed secondary when the zone changes
Set-DnsServerPrimaryZone -Name "corp.example.com" -Notify "NotifyServers" -NotifyServers "192.168.10.11" -PassThru

Then run Get-DnsServerZone -Name "corp.example.com" | Format-List * and check the notify and secondary server values, or open the GUI’s Notify… dialog to confirm both settings took.

Create the secondary (on DNS2):

# -MasterServers points at the primary; the zone file is created locally on DNS2
Add-DnsServerSecondaryZone -Name "corp.example.com" -ZoneFile "corp.example.com.dns" -MasterServers "192.168.10.10" -PassThru

Or, a stub zone if DNS2 should only track the zone’s name servers:

# Stub zones hold only SOA, NS, and glue A records, not the full zone
Add-DnsServerStubZone -Name "corp.example.com" -MasterServers "192.168.10.10" -ZoneFile "corp.example.com.stub.dns" -PassThru

Force a transfer from DNS2 and check that it worked. Per the Start-DnsServerZoneTransfer reference, the cmdlet runs against a secondary zone (locally or with -ComputerName), and -FullTransfer requests a full copy instead of an incremental one:

Start-DnsServerZoneTransfer -Name "corp.example.com" -FullTransfer
Resolve-DnsName -Name "app01.corp.example.com" -Server 192.168.10.11

Expected result: DNS2 returns 192.168.10.50 for app01. Because the zone is a secondary, its record list in DNS Manager is read-only.

Step 10: Verify the Whole Path End-to-End

From a client or the server itself, test each layer separately:

# 1. Local authoritative zone: should answer from DNS1 directly
Resolve-DnsName -Name "app01.corp.example.com" -Server 192.168.10.10

# 2. Reverse lookup
Resolve-DnsName -Name "192.168.10.50" -Server 192.168.10.10

# 3. Conditional forwarder path
Resolve-DnsName -Name "www.partner.example.net" -Server 192.168.10.10

# 4. Server-level forwarder path (internet name)
Resolve-DnsName -Name "learn.microsoft.com" -Server 192.168.10.10
PowerShell console on Windows Server 2025 running Resolve-DnsName against an internal name (app01.corp.example.com) and an external name (learn.microsoft.com) with -Server 192.168.10.10, showing the Name, Type, TTL, Section, and IPAddress columns

If all four return answers, your setup works. If one fails, the troubleshooting sequence below tells you which layer to blame.

Configuration: Settings Worth Knowing

SettingTypical default on a fresh installWhereRecommendation
Zone typePrimaryNew Zone WizardAD-integrated on DCs, file-backed otherwise
Server-level forwardersNone (root hints used)Server Properties > ForwardersSet two reachable upstream resolvers
Use root hints if no forwarders availableEnabledForwarders tabDisable only if policy forces all lookups through specific resolvers
Conditional forwarder replicationNot stored in AD unless chosenNew Conditional Forwarder dialogForest or Domain scope on DCs, so every DC gets it
Zone transfersDon’t assume a value; check itZone Properties > Zone Transfers“Only to the following servers” with explicit IPs
Dynamic updatesSet per zoneZone Properties > GeneralSecure only for AD-integrated zones
Listening interfacesAll IPsServer Properties > InterfacesRestrict on multi-homed servers

To check recursion and root hints from PowerShell:

# Enable = True means the server resolves names outside its own zones for clients
Get-DnsServerRecursion

# Lists the root servers used when forwarders fail and root-hint fallback is on
Get-DnsServerRootHint

Recursion is a server-wide setting. In DNS Manager it’s the Disable recursion (also disables forwarders) checkbox on the Advanced tab. With recursion off, the server stops resolving outside names for clients through forwarders, conditional forwarders, or root hints. That’s the right design for an authoritative-only server facing the internet. On an internal resolver, though, it looks like a forwarder outage when the cause is one setting, so check it before you blame the upstream.

Tips and Troubleshooting

The Diagnostic Sequence: Local, Forwarder, or Upstream?

Run these in order and stop at the first failure.

1. Is the local zone answering?

Resolve-DnsName -Name "app01.corp.example.com" -Server 127.0.0.1 -DnsOnly

If this fails, the problem is the zone itself. It’s missing, it failed to load, or the record doesn’t exist. Check the event log (step 5 below).

2. Can the server reach each forwarder directly?

# Bypass your server and ask each upstream resolver directly
Resolve-DnsName -Name "learn.microsoft.com" -Server 1.1.1.1 -DnsOnly
Resolve-DnsName -Name "learn.microsoft.com" -Server 9.9.9.9 -DnsOnly

# Tests TCP 53 reachability (does not test UDP)
Test-NetConnection -ComputerName 1.1.1.1 -Port 53

If the direct queries work but queries through your server fail, the fault is in your forwarder or recursion config. If the direct queries fail too, look at the firewall or the upstream resolver.

3. Cross-check with nslookup. It’s handy for an interactive second opinion, and it’s on every Windows box:

nslookup learn.microsoft.com 192.168.10.10

nslookup uses its own resolver logic, separate from the Windows DNS client. That makes it a useful cross-check. For scripts, though, Resolve-DnsName gives you structured output.

4. On domain controllers, run dcdiag’s DNS test:

# /test:dns runs the DNS-specific DC tests; /v gives verbose output
dcdiag /test:dns /v

This checks delegation, dynamic registration, forwarders, and record registration from the DC’s point of view. The output is long. Search for fail to find what matters. Confirm the exact test options for your build with dcdiag /?.

5. Read the DNS Server event log. Go to Event Viewer > Applications and Services Logs > DNS Server, or use PowerShell:

# Most recent 20 DNS Server events, newest first
Get-WinEvent -LogName "DNS Server" -MaxEvents 20 | Format-Table TimeCreated, Id, LevelDisplayName, Message -Wrap

Zone load errors, zone transfer failures, and forwarder problems are logged here.

Event Viewer on Windows Server 2025 with Applications and Services Logs > DNS Server selected, showing a list of recent events with the Source, Event ID, and Level columns visible

6. Clear caches between tests. Otherwise you’ll keep seeing stale answers:

Clear-DnsServerCache -Force   # server-side cache
Clear-DnsClientCache          # local client resolver cache

Internal Names Resolve, Internet Names Time Out

Why it happens: The forwarder IPs are wrong or unreachable. Or the firewall blocks UDP or TCP 53 outbound. Or the upstream resolver won’t accept recursive queries from your server’s source IP.

Fix:

  • Open Server Properties > Forwarders > Edit and check each IP. Or run Get-DnsServerForwarder.
  • Test each upstream directly with Resolve-DnsName -Server, as in step 2 of the sequence above.
  • Confirm that Get-DnsServerRecursion shows recursion enabled.
  • If you use an internal or ISP resolver upstream, confirm it allows recursion from your DNS server’s IP.
  • Decide whether Use root hints if no forwarders are available should be on as a safety net.

Conditional Forwarder Is Ignored or Sends Queries to the Wrong Server

Why it happens: The namespace doesn’t exactly match what clients query (for example, partner.example.net vs. partners.example.net). Or the master IPs are stale. Or a more specific local zone or delegation for that name exists and wins.

Fix:

  • Run Get-DnsServerZone and check that no forward lookup zone exists with the same or an overlapping name.
  • Correct the spelling, or update the masters:
Set-DnsServerConditionalForwarderZone -Name "partner.example.net" -MasterServers "10.20.0.10", "10.20.0.11"
  • Clear the server cache, then test with Resolve-DnsName -Server.

Secondary Zone Doesn’t Pick Up New Records

Why it happens: Zone transfers are off on the primary, or the secondary’s IP isn’t on the allow-list. If the primary is set to transfer only to name servers, DNS2 also needs an NS record in the zone. A firewall can block the transfer itself, which uses TCP 53. Change notifications (NOTIFY) are a separate setting, so a secondary that isn’t notified only updates when its refresh interval comes around.

Fix:

  • On the primary, open the zone Properties > Zone Transfers. Make sure Allow zone transfers is checked and DNS2’s IP is listed.
  • Confirm that the Notify settings include the secondary.
  • Check that TCP 53 from DNS2 to DNS1 is open: Test-NetConnection -ComputerName 192.168.10.10 -Port 53.
  • Force a transfer from DNS2 with Start-DnsServerZoneTransfer -Name "corp.example.com" -FullTransfer. Then look for transfer errors in the DNS Server event log on both servers.

Zone Transfers Are Open to Any Server

Why it happens: Someone picked To any server while troubleshooting and never changed it back.

Fix: Audit every zone, then lock each one down:

# Show transfer settings for all primary zones
Get-DnsServerZone | Where-Object ZoneType -eq "Primary" | ForEach-Object { Get-DnsServerPrimaryZone -Name $_.ZoneName } | Select-Object ZoneName, SecureSecondaries, SecondaryServers

# Restrict a zone to explicit secondaries
Set-DnsServerPrimaryZone -Name "corp.example.com" -SecureSecondaries "TransferToSecureServers" -SecondaryServers "192.168.10.11"

AD-integrated zones replicate through AD, so they often don’t need zone transfers at all. Set those to NoTransfer unless a non-AD secondary depends on them.

DNS Behaves Differently After an In-Place Upgrade to Windows Server 2025

Why it happens: Nobody recorded the forwarders, recursion, conditional forwarders, or transfer permissions before the upgrade. So nobody can say for sure what changed.

Fix: Snapshot the config before you upgrade, and compare it afterward:

# Run before the upgrade; repeat after with a different file name and compare
New-Item -ItemType Directory -Path "C:\DNSBackup" -Force
Get-DnsServerForwarder | Export-Clixml -Path "C:\DNSBackup\forwarders.xml"
Get-DnsServerRecursion | Export-Clixml -Path "C:\DNSBackup\recursion.xml"
Get-DnsServerZone | Export-Clixml -Path "C:\DNSBackup\zones.xml"

# Conditional forwarders are returned by Get-DnsServerZone with ZoneType "Forwarder"
Get-DnsServerZone | Where-Object ZoneType -eq "Forwarder" | Export-Clixml -Path "C:\DNSBackup\conditional-forwarders.xml"

After the upgrade, run the same commands with new file names. Then check the zone transfer settings on each primary zone and rerun the four-layer check from Step 10.

Before you treat the conditional-forwarder export as a real backup, open the file and confirm it actually lists your partner namespace and master server IPs. If it comes back empty, compare it with the Conditional Forwarders node in DNS Manager and with dnscmd /enumzones /forwarder. Test the full backup-and-restore (or at least backup-and-audit) workflow at least once before you depend on it during a real upgrade.

Before upgrading, also check Microsoft’s Windows Server 2025 known issues page in case a current issue affects your build.

Quick Tips

  • Manage remotely. The DnsServer cmdlets used in this guide accept -ComputerName, so you can manage DNS1 and DNS2 from an admin workstation without RDP.
  • Two DNS servers, minimum. Even in a homelab, a second DNS VM on separate hardware avoids a single point of failure. DNS needs very little bandwidth, so any switch works. In my homelab I keep both boxes on the same 2.5GbE switch and a UPS. That’s a convenience, not redundancy: the shared switch and UPS are still single points of failure.
  • Use -PassThru on Add/Set cmdlets. You get confirmation output instead of silence. That helps in scripts and change tickets.
  • Pair DNS with DHCP. If DHCP hands out your DNS servers and registers records for non-Windows clients, your reverse zone stays useful without manual PTR records.

Wrapping Up

You now have a Windows Server 2025 DNS server with the right zone type, forwarders for internet names, conditional forwarders where you need them, and zone transfers limited to known servers. When a “can’t resolve X” ticket comes in, a few commands tell you whether the fault is local, at the forwarder, or upstream. That beats rebooting the DNS service and hoping.

My take: in my experience the DNS role in Server 2025 works much like it did in earlier releases, and that’s fine. Most of your skills carry over. Most breakage comes from config drift: open transfers, stale conditional forwarder IPs, or forwarders set on a DC’s adapter. Script your config, snapshot it before upgrades, and run Resolve-DnsName -Server before you change anything.

StepActionApplies To
1–2Install role, check listeners and firewallAll servers
3–5Choose zone type, create forward and reverse zonesPrimary DNS server
6Add a test A and PTR recordPrimary DNS server
7Set server-level forwardersAll recursive DNS servers
8Add conditional forwardersServers needing partner or branch namespaces
9Restrict transfers, build secondary or stubPrimary + secondary
10Verify each resolution layerAny client or server

Resources

  • DNS Architecture in Windows Server
  • Manage DNS zones using DNS server in Windows Server
  • Configure DNS forwarding in Windows Server
  • Set-DnsServerConditionalForwarderZone reference
  • Windows Server release information
  • Windows Server 2025 known issues and notifications
  • Windows Server pricing

Sources retrieved October 30, 2026.

Sources