Active Directory & Identity
Active Directory & Identityintermediate16 min read·Updated Sep 1, 2026

Active Directory DNS on Windows Server 2025: Setup, Forwarders, and Best Practices

Configure Active Directory DNS on Windows Server 2025 with AD-integrated zones, secure dynamic updates, forwarders, conditional forwarders, SRV validation, reverse lookup, and DNS health checks.

Genuine, fully-licensed Windows
Spin up a Windows Server: full admin, RDP-ready
Genuine Windows Server 2019, 2022, or 2025 with full administrator access. We handle the Microsoft licensing, billed monthly with nothing to buy upfront.

In short

Active Directory DNS is how domain members locate domain controllers, Kerberos, LDAP, Global Catalog, and other directory services. A clean Windows Server 2025 design keeps the AD namespace on internal DNS servers, uses AD-integrated zones with secure dynamic updates, verifies the domain-controller locator records, and uses deliberate forwarders for names the AD DNS servers do not host.

For a typical small-business or MSP deployment:

Active Directory DNS architecture on Windows Server 2025 showing domain members using internal AD DNS, domain controllers handling AD DS, DNS, locator records, and replication, plus conditional forwarding to authoritative DNS servers for specific internal or partner namespaces.

This article is the canonical owner for post-promotion Active Directory DNS configuration, validation, forwarders, conditional forwarders, and operational best practices. Domain-controller promotion remains on Promote a Windows VPS to an Active Directory Domain Controller, while generic Windows DNS troubleshooting should remain a separate troubleshooting intent.

Why Active Directory depends on DNS

Microsoft documents that Active Directory Domain Services uses DNS so clients can locate domain controllers and so directory servers can find each other. Domain-controller locator information is published through DNS records such as LDAP and Kerberos SRV records.

When AD DNS is unhealthy, the symptoms can look like an Active Directory, Group Policy, authentication, or replication problem:

  • domain joins fail;
  • logons are slow or inconsistent;
  • Group Policy applies unpredictably;
  • replication fails;
  • clients discover the wrong domain controller;
  • LDAP or Kerberos lookups fail;
  • domain-controller locator records are missing;
  • password or directory changes appear inconsistent between locations.

For that reason, DNS should be checked before making invasive changes to AD itself.

What this guide covers

This guide assumes you already have at least one Windows Server 2025 domain controller running the DNS Server role. We will verify and configure:

  1. DNS service and client settings;
  2. AD-integrated zones;
  3. secure dynamic updates;
  4. LDAP and Kerberos SRV records;
  5. server-level forwarders;
  6. conditional forwarders;
  7. optional reverse lookup zones;
  8. dcdiag DNS health checks;
  9. one-DC vs two-DC DNS design.

Prerequisites

Before changing DNS, confirm:

  • the server is already a domain controller or intended AD DNS server;
  • the DNS Server service is running;
  • the server has stable private addressing;
  • you know the Active Directory DNS domain;
  • you have administrative access;
  • domain traffic uses private networking, VPN, or another trusted path;
  • you have recorded existing forwarders before changing them;
  • production changes have a rollback path.

Do not configure domain members to bypass AD DNS and query public recursive resolvers as their normal DNS path. Public resolvers do not know the private locator records required by your AD namespace.

For production, plan at least two domain controllers. See Active Directory Replication Topology for 2-DC Setups.

Step 1 — Record the current DNS configuration

Start by documenting the current state.

Run PowerShell as Administrator:

Powershell
Get-Service DNS,Netlogon | Select-Object Name, Status Get-DnsServerZone | Select-Object ZoneName, ZoneType, IsDsIntegrated, IsReverseLookupZone, DynamicUpdate Get-DnsServerForwarder Get-DnsClientServerAddress -AddressFamily IPv4 | Where-Object {$_.ServerAddresses.Count -gt 0} | Select-Object InterfaceAlias, ServerAddresses

Record the AD domain as well:

Powershell
Import-Module ActiveDirectory Get-ADDomain | Select-Object DNSRoot, NetBIOSName, PDCEmulator

A first domain controller commonly has the domain zone and a forest locator zone such as:

Text
example.com _msdcs.example.com

The exact zones depend on the forest and topology.

Windows Server 2025 Active Directory domain controller showing DNS and Netlogon services running and domain details

Step 2 — Verify the AD-integrated zones

AD-integrated DNS zones store zone data in Active Directory. Microsoft documents that this removes the need for a separate classic DNS zone-transfer replication topology for those zones and enables multi-master updates through AD replication.

Inspect the current zones:

Powershell
Get-DnsServerZone | Format-Table ZoneName, ZoneType, IsDsIntegrated, IsReverseLookupZone, DynamicUpdate -AutoSize

For the AD domain zone, the expected production pattern is normally:

Text
ZoneType Primary IsDsIntegrated True DynamicUpdate Secure

Do not convert a production zone between file-backed and AD-integrated storage merely to match a tutorial. Understand the current replication scope, dependencies, and recovery plan first. PowerShell showing AD-integrated DNS zones with secure dynamic updates on Windows Server 2025

Step 3 — Verify secure dynamic updates

Dynamic DNS allows domain computers and domain controllers to register and update records. Active Directory-integrated zones can use secure dynamic updates so updates are governed by authenticated identities and directory permissions.

Check the domain zone:

Powershell
$Domain = (Get-ADDomain).DNSRoot Get-DnsServerZone -Name $Domain | Select-Object ZoneName, IsDsIntegrated, DynamicUpdate

If the zone is AD-integrated and your intended policy is secure-only updates, Windows Server supports:

Powershell
Set-DnsServerPrimaryZone -Name $Domain -DynamicUpdate Secure

Do not run that change blindly on an existing production environment. First verify the current zone type and whether any non-domain systems depend on a different registration design.

Avoid using NonsecureAndSecure simply to make an unknown registration problem disappear. That widens who can dynamically register records in the zone.

Step 4 — Verify the domain-controller SRV records

Active Directory uses SRV records to advertise directory services. Microsoft specifically documents LDAP and Kerberos locator records used to find domain controllers.

Set the domain automatically:

Powershell
$Domain = (Get-ADDomain).DNSRoot

Verify LDAP domain-controller discovery:

Powershell
Resolve-DnsName -Type SRV "_ldap._tcp.dc._msdcs.$Domain"

Verify Kerberos:

Powershell
Resolve-DnsName -Type SRV "_kerberos._tcp.$Domain"

You can also use nslookup:

Cmd
nslookup -type=SRV _ldap._tcp.dc._msdcs.example.com

A healthy result should return one or more domain-controller host names and the expected SRV service ports.

If the records are missing, do not manually create random SRV records as the first fix. Check Netlogon, dynamic update state, zone health, DNS client configuration, and record registration.

PowerShell showing Active Directory LDAP and Kerberos SRV records resolving to the domain controller

Step 5 — Verify domain-controller discovery and forward resolution

Confirm the DC host name resolves:

Powershell
$Domain = (Get-ADDomain).DNSRoot $DC = (Get-ADDomainController -Discover).HostName Resolve-DnsName $DC Resolve-DnsName $Domain

Then test domain-controller discovery:

Cmd
nltest /dsgetdc:example.com

Replace example.com with your actual AD DNS domain.

For multi-DC environments, also verify AD site mapping and replication. A valid DNS response is only one part of correct site-aware domain-controller discovery.

Step 6 — Configure server-level forwarders deliberately

A DNS forwarder receives queries the local DNS server cannot answer. This lets domain clients continue using AD DNS while the DNS server sends public-name queries to approved recursive resolvers.

Read the existing configuration first:

Powershell
Get-DnsServerForwarder

This is important because Set-DnsServerForwarder replaces the existing server-level forwarder list.

For a new controlled environment, example syntax is:

Powershell
Set-DnsServerForwarder ` -IPAddress 1.1.1.1,8.8.8.8 ` -PassThru

Those IPs are examples of public recursive resolvers, not a Raff requirement. Use DNS resolvers approved for your organization, network, or customer.

If you only want to append one resolver rather than replace the list:

Powershell
Add-DnsServerForwarder -IPAddress 1.1.1.1 -PassThru

Then verify a real external lookup:

Powershell
Resolve-DnsName www.microsoft.com

Windows DNS can use normal recursion/root hints after configured forwarders are exhausted unless the server is configured otherwise.

PowerShell showing Windows DNS forwarders and successful external DNS resolution to microsoft.com

Step 7 — Use conditional forwarders for specific namespaces

A normal forwarder handles unresolved queries broadly. A conditional forwarder sends queries for one particular DNS namespace to specific DNS servers.

Useful examples include:

  • two internal AD forests that need cross-forest name resolution;
  • an office namespace resolving a cloud namespace;
  • a partner/internal domain with dedicated authoritative DNS servers;
  • migration periods where two internal namespaces coexist.

Architecture:

Text
corp.example.com DNS | | query for partner.internal v Conditional forwarder | v Authoritative partner DNS servers

Do not use a conditional forwarder just to resolve normal internet names.

Step 8 — Create an AD-integrated conditional forwarder

Microsoft's Add-DnsServerConditionalForwarderZone cmdlet can create a conditional forwarder. With a replication scope, the forwarder can be stored in Active Directory and replicated to the selected AD DNS scope.

Example:

Powershell
Add-DnsServerConditionalForwarderZone ` -Name "partner.internal" ` -MasterServers 10.20.0.10,10.20.0.11 ` -ReplicationScope Forest ` -PassThru

Use real IP addresses for DNS servers that are authoritative for the target namespace and reachable over the intended network path.

Verify the zone object:

Powershell
Get-DnsServerZone -Name "partner.internal" | Format-List ZoneName, ZoneType, IsDsIntegrated

Then test an actual record that is known to exist:

Powershell
Resolve-DnsName server01.partner.internal

A configured forwarder object is not proof that name resolution works. The target DNS servers must be reachable and authoritative for the namespace.

We intentionally do not require a screenshot for this section unless a real reachable secondary namespace is available. Do not create a fake partner domain only for documentation evidence.

Conditional forwarder vs delegation

RequirementBetter fit
Send queries for one specific external/internal namespace to known DNS serversConditional forwarder
Delegate authority for a child zone inside a DNS hierarchy you controlDelegation
Resolve ordinary internet namesServer-level forwarders or normal recursion
Replicate one conditional forwarder across AD DNS serversAD-integrated conditional forwarder

They are related DNS tools but they do not represent the same ownership model.

Step 9 — Add a reverse lookup zone only when it is useful

Active Directory domain-controller discovery does not depend on PTR records, but reverse DNS can improve administration, diagnostics, logging, and compatibility with software that performs reverse lookups.

For a private subnet such as 10.10.0.0/24, example syntax for an AD-integrated reverse zone is:

Powershell
Add-DnsServerPrimaryZone ` -NetworkId "10.10.0.0/24" ` -ReplicationScope Forest ` -DynamicUpdate Secure

Verify reverse zones:

Powershell
Get-DnsServerZone | Where-Object IsReverseLookupZone | Format-Table ZoneName, IsDsIntegrated, DynamicUpdate

Then test a PTR record that actually exists:

Powershell
Resolve-DnsName 10.10.0.10 -Type PTR

Do not invent PTR records only to make a lab screenshot look successful. Reverse records should reflect the real network.

The Raff lab check showed only the standard 0.in-addr.arpa, 127.in-addr.arpa, and 255.in-addr.arpa zones rather than a real AD-integrated reverse zone for the workload network, so reverse-DNS screenshot evidence is intentionally omitted.

Step 10 — Run the Active Directory DNS health tests

dcdiag includes dedicated DNS tests for connectivity, forwarders, delegation, dynamic updates, and domain-controller record registration.

Basic DNS:

Cmd
dcdiag /test:dns /DnsBasic /v

DCDiag DNS basic test results for a Windows Server 2025 Active Directory domain controller

Forwarders:

Cmd
dcdiag /test:dns /DnsForwarders /v

Dynamic updates:

Cmd
dcdiag /test:dns /DnsDynamicUpdate /v

Domain-controller record registration:

Cmd
dcdiag /test:dns /DnsRecordRegistration /v

DCDiag DNS record registration test verifying Active Directory A, CNAME, and SRV records

Broader DNS test:

Cmd
dcdiag /test:dns /v

Microsoft documents that the record-registration test checks important A, CNAME, and SRV records used for domain-controller location.

In large forests, DNS tests can take longer, especially when testing every domain controller. Scope the test intentionally.

Step 11 — Configure domain-member DNS correctly

Domain members should query DNS servers that can resolve the AD namespace.

For a typical two-DC environment:

Text
Preferred DNS: local/site-appropriate DC private IP Alternate DNS: another internal AD DNS/DC private IP

Do not configure a domain member like this:

Text
Preferred DNS: public resolver Alternate DNS: DC01

A public resolver does not host your private AD locator records.

Verify a member server with:

Powershell
Get-DnsClientServerAddress -AddressFamily IPv4 | Where-Object {$_.ServerAddresses.Count -gt 0} | Select-Object InterfaceAlias, ServerAddresses

DNS client settings on domain controllers

Domain controllers must also use DNS servers that host the AD namespace. In a one-DC lab that can mean the local AD DNS service. In a two-DC or multi-site environment, choose internal DNS ordering deliberately based on topology and resilience.

Do not point a domain controller only at public DNS resolvers. External lookups should be handled by the DNS server's forwarding/recursion configuration, not by bypassing AD DNS at the NIC level.

Windows Server 2025 domain controller DNS client settings using the local AD DNS service at 127.0.0.1

Secure dynamic updates are the normal AD baseline

A practical AD DNS pattern is:

Text
AD-integrated zone + Secure dynamic updates + domain clients using internal AD DNS + healthy Netlogon registration

If a non-domain device needs a DNS record, manage that record deliberately rather than weakening the entire AD zone to open dynamic registration.

Be careful with aging and scavenging

DNS aging and scavenging can clean stale dynamic records, but poor configuration can also remove records you still need.

Before enabling scavenging in production:

  • inventory static records;
  • understand no-refresh and refresh intervals;
  • understand DHCP/DNS ownership behavior;
  • test on a controlled scope;
  • document recovery;
  • monitor resulting deletions.

There is no single universal scavenging interval for every AD environment. DHCP lease duration and client behavior matter.

Active Directory DNS best-practice checklist

AreaBaseline
DNS namespaceAD namespace hosted on internal authoritative DNS servers
Zone storageAD-integrated where appropriate for AD DNS
Dynamic updatesSecure for AD-integrated domain zones
Domain membersUse internal AD DNS, not public DNS directly
Domain controllersUse internal AD DNS paths only
External resolutionDeliberate forwarders or normal recursion
Conditional forwardingOnly for specific namespaces with known DNS servers
SRV recordsVerify LDAP/Kerberos/DC locator records
Reverse DNSOptional; keep PTR data accurate if used
ReplicationVerify AD/DNS replication in multi-DC environments
ExposureKeep AD DNS private; do not operate it as a public recursive resolver
ChangesRecord existing forwarder/zone config before modifying it
Health checksUse dcdiag /test:dns plus real resolution tests
RecoveryInclude AD-integrated DNS in AD backup/recovery planning

DNS architecture: one DC vs two DCs

One-DC lab

Text
Domain members | v DC01 / AD DNS | +--> AD-integrated zones | `--> approved external forwarders

This is acceptable for a lab. It is still a single point of failure for authentication and DNS.

Two-DC production baseline

Text
Trusted private network /-------------------------------\ / \ DC01 DC02 AD DS/DNS AD DS/DNS \ / \------- AD replication --------/ Clients -> internal DNS on DC01/DC02 AD DNS -> approved external forwarders for public names

Because AD-integrated zone data is stored in AD DS, zone data can replicate through Active Directory rather than through a separate classic zone-transfer design.

For the full topology, use Active Directory Replication Topology for 2-DC Setups.

Common Active Directory DNS mistakes

Pointing clients directly to public DNS

Public resolvers do not know your private AD locator records. Keep domain clients on AD DNS and let AD DNS resolve external names upstream.

Replacing forwarders without recording the existing list

Set-DnsServerForwarder replaces the forwarder list. Read the current configuration first. Use Add-DnsServerForwarder when you only intend to append a resolver.

Enabling nonsecure dynamic updates as a quick fix

For AD-integrated zones, secure updates should normally be preferred. Diagnose why a device cannot register instead of weakening the whole zone without a reason.

Manually creating SRV records before fixing registration

Missing _ldap or _kerberos records usually point to a Netlogon, zone, DNS client, or dynamic-registration problem. Fix the registration path rather than masking it.

Creating conditional forwarders to unreachable servers

A conditional-forwarder object can exist while every query still fails. Test a real record in the target namespace.

Treating reverse DNS as proof that AD DNS is healthy

PTR records are useful but domain-controller discovery depends on forward DNS and the correct locator records.

Exposing AD DNS to the public internet

AD DNS is internal identity infrastructure. Keep TCP/UDP 53 on trusted networks unless a separately designed public-authoritative DNS role exists for a different purpose.

Ignoring DNS during replication troubleshooting

Many apparent AD replication issues are name-resolution failures. Check DNS early.

Troubleshooting order

When Active Directory DNS appears broken:

  1. Confirm DNS and Netlogon are running.
  2. Confirm the server's DNS client settings use internal AD DNS.
  3. Confirm the domain zone exists and is AD-integrated as expected.
  4. Confirm dynamic-update mode is correct.
  5. Resolve the DC host name.
  6. Resolve _ldap._tcp.dc._msdcs.<domain>.
  7. Run dcdiag /test:dns /DnsBasic /v.
  8. Run dcdiag /test:dns /DnsRecordRegistration /v.
  9. Check server-level forwarders if only external names fail.
  10. Check target-server reachability if only one conditional-forwarder namespace fails.
  11. In multi-DC environments, verify replication and AD site configuration.

Do not start by deleting zones, changing the NIC to public DNS, or making multiple unrelated changes at once. Those actions can hide the real fault and make rollback difficult.

Where Raff fits

Raff Windows VMs can provide the Windows Server infrastructure for domain controllers and AD-integrated DNS where administrators need control of the operating system, private networking, firewall rules, backups, and topology.

A small production deployment commonly uses two dedicated Windows VMs as domain controllers/DNS servers over a trusted private path. Raff provides the infrastructure layer; Active Directory architecture, DNS configuration, replication, security, backup, and recovery remain administrator responsibilities unless a separate managed service explicitly covers them.

For a new forest, start with Promote a Windows VPS to an Active Directory Domain Controller. For redundancy, continue to Active Directory Replication Topology for 2-DC Setups.

Frequently asked questions

Does Active Directory require DNS?

Yes. AD DS relies on DNS for domain-controller and directory-service discovery. Domain controllers register locator records, including SRV records, that clients use to find LDAP, Kerberos, and other AD services.

Should domain-joined computers use 8.8.8.8 or another public resolver directly?

Not as their normal Active Directory DNS path. Domain members should query internal DNS servers that know the AD namespace. Those DNS servers can then forward external queries to approved upstream resolvers.

What is an AD-integrated DNS zone?

It is a DNS zone stored in Active Directory Domain Services. The DNS data can replicate through AD replication and use directory security for updates.

What is the difference between a forwarder and a conditional forwarder?

A server-level forwarder handles unresolved queries broadly. A conditional forwarder sends queries for one specific DNS namespace to specified DNS servers.

How do I verify Active Directory SRV records?

Query _ldap._tcp.dc._msdcs.<your-domain> with Resolve-DnsName or nslookup. You can also use dcdiag /test:dns /DnsRecordRegistration /v to validate important domain-controller DNS registrations.

Which dcdiag command checks DNS forwarders?

Use:

Cmd
dcdiag /test:dns /DnsForwarders /v

Other DNS-specific tests cover basic DNS, delegation, dynamic updates, and record registration.

Do I need a reverse lookup zone for Active Directory?

Not for basic domain-controller discovery. Reverse zones are still useful for administration, diagnostics, logging, and software that expects PTR records.

What's next

Sources

Was this article helpful?

Published September 1, 2026 · Updated September 1, 2026

Back to hub
Ready when you are

Your Windows Server, live in ~55 seconds

Genuine, fully-licensed Windows with full admin and RDP. We handle the Microsoft licensing, billed monthly with nothing upfront. On NVMe SSD, backed by a 14-day money-back guarantee.

Related articles