AD-integrated DNS migration to Windows Server 2025 with scavenging and resolver cutover.
Full migration sequence for moving authoritative DNS hosting, forwarders, scavenging, and client targeting without lookup regression.
Full migration sequence for moving authoritative DNS hosting, forwarders, scavenging, and client targeting without lookup regression.
DNS migrations go wrong when zone hosting, forwarders, scavenging, and client resolver changes all move at once. Break those streams apart and prove each one independently.
Runbook note: Keep old and new DNS hosts answering in parallel until authoritative zone transfer, forwarder behavior, and client resolver selection all test cleanly from the same workloads.
Command path:
Get-DnsServerZone -ComputerName HF-DC-OLD01Get-DnsServerForwarder -ComputerName HF-DC-OLD01Get-DnsServerScavenging -ComputerName HF-DC-OLD01dcdiag /test:DNS /e /vGUI path: DNS Manager > Forward Lookup Zones, Reverse Lookup Zones, Conditional Forwarders, and Server Properties > Forwarders and Advanced.
The new Windows Server 2025 DNS hosts should already have the same zone scope, forwarder intent, logging decisions, and scavenging model before production clients are pointed at them.
Command path:
Install-WindowsFeature DNS -IncludeManagementToolsGet-DnsServerZone -ComputerName HF-DC25-01Get-DnsServerDirectoryPartition -ComputerName HF-DC25-01Resolve-DnsName dc01.corp.example.com -Server HF-DC25-01GUI path: Server Manager > Add Roles and Features, then DNS Manager on the new server to verify zones, policies, and forwarders.
Scavenging should be predictable and conservative during migration windows. The objective is to remove stale records after cutover, not to delete valid records while resolver paths are still moving.
Command path:
Get-DnsServerScavengingSet-DnsServerScavenging -ScavengingState $true -RefreshInterval 7.00:00:00 -NoRefreshInterval 7.00:00:00Get-DnsServerResourceRecord -ZoneName corp.example.com -RRType Aipconfig /registerdnsGUI path: DNS Manager > Server Properties > Advanced and zone Properties > Aging to review intervals, dynamic updates, and cleanup settings.
The safest DNS cutover is a client-targeting exercise. Shift small resolver populations first, compare answers, then expand to DHCP scopes, VPN users, servers, and remote sites.
Command path:
Get-DhcpServerv4OptionValue -OptionId 6Set-DhcpServerv4OptionValue -ScopeId 10.10.20.0 -DnsServer 10.10.10.11,10.10.10.12Resolve-DnsName app.corp.example.com -Server 10.10.10.11nslookup -type=SRV _ldap._tcp.dc._msdcs.corp.example.com 10.10.10.11GUI path: DHCP Manager > Scope Options > 006 DNS Servers and VPN or network-controller interfaces that publish resolver settings.
Post-cutover checks should show that authoritative data, forwarder behavior, reverse lookups, and secure dynamic registration are all being served by the intended 2025 hosts.
Command path:
Resolve-DnsName corp.example.com -Type SOA -Server HF-DC25-01Resolve-DnsName 10.10.20.45 -Type PTR -Server HF-DC25-01Get-WinEvent -LogName "DNS Server" -MaxEvents 50dcdiag /test:DNS /DnsDynamicUpdateGUI path: DNS Manager, Event Viewer > Applications and Services Logs > DNS Server, and Active Directory Sites and Services for cross-site validation.
The last stage is controlled retirement: remove stale NS records, demote unused listeners, and document any application or network object that was still pinned to the previous resolver tier.
Command path:
Remove-DnsServerResourceRecord -ZoneName corp.example.com -RRType NS -Name "corp.example.com" -RecordData "HF-DC-OLD01.corp.example.com"Get-DnsServerResourceRecord -ZoneName corp.example.com -Name "_msdcs"dcdiag /test:DNS /eClear-DnsServerCache -ComputerName HF-DC25-01 -ForceGUI path: DNS Manager > Zone properties, Name Servers, and resource-record views for final cleanup and retirement.