Windows Server DNS Setup: AD, Zones, Forwarding

Name resolution failures block domain logon and internal services, and the cause is often searched manually across zones. We provide turnkey DNS for Windows Server: we review the structure of zones and records, set up replication between sites, and hand over the name service to managed support. We reduce name recovery time, and zone changes follow a defined procedure.

Our competencies:

Frequently Asked Questions

Latest works

  • Development of a web application for FEEDME
    Development of a web application for FEEDME
    1365
  • Development of an online store for the company FURNORO
    Development of an online store for the company FURNORO
    1330
  • B2B Advance company logo design
    B2B Advance company logo design
    776
  • Development of a web application for Enviok
    Development of a web application for Enviok
    1077
  • AIDER company logo development
    AIDER company logo development
    1022
  • CRM development for Chasseurs
    CRM development for Chasseurs
    1113

DNS configuration on Windows Server: where name resolution most often breaks

DNS configuration on Windows Server almost never breaks at the moment the role is installed — failures come later, when addressing changes or a new site is added.

The external picture is the same: the domain controller is running, zones are in place, but some clients get a timeout instead of an address.

Three recurring causes lie behind this: zone desynchronization between servers, record loss when an address changes, and slow domain response.

Zone desynchronization starts with how the second server is added. If a zone is declared primary on two nodes instead of a zone integrated into the directory, the servers stop exchanging edits: only the one that created a record sees it.

A client that lands on the "old" server gets a name resolution error — and it looks like a domain controller failure, although the service is alive and responds to direct queries.

The second point of failure is a node address change: the forward record is updated, but the reverse zone keeps the old value, and services that verify reverse resolution reject connections.

Nearby are scavenging errors: an overly aggressive deletion period for dynamic records removes the address of a working machine, while a static record sends traffic to a decommissioned server for years.

Slow domain response is rarely related to load — more often it is waiting for an unavailable node: the client goes through the list of servers and waits for a timeout before contacting the next one.

An incorrectly specified forwarder breaks external name resolution for everyone who lands on it. Below, we examine how these failures are detected from logs and counters and what exactly changes in the configuration.

What managed DNS provides: speed, stability, control

The local name service in Windows Server on a domain controller is the point through which every authentication, access to shared resources, and call to internal services passes.

Before work, we take baseline metrics: name resolution response time, share of successful responses, and number of external server queries. They show exactly where time is lost and what headroom the service has.

The main gain comes from query caching: repeated requests to internal zones are served locally, without traversing the server chain and waiting for the external link.

External requests go to forwarding only when there is no answer in the cache, so name resolution response time becomes predictable, and the morning mass login of employees no longer hits a single server.

Name service resilience is built on zone replication between multiple controllers: clients receive two or more addresses in their settings, and a node outage does not interrupt name resolution.

We test this by disabling a server — recovery proceeds without manual intervention, and we record the time to return to normal with a measurement, not words.

Zone control means forward and reverse zones of the domain, separate zones for branches, and conditional forwarding for a partner's domain.

We close open recursion: only dedicated servers return external addresses, so the name service does not turn into an amplifier for others' attacks and does not spend resources on extraneous traffic.

As a result, a whole class of failures goes away, when "site unavailable" means not a crashed service but an unresolved name.

The share of successful resolutions stays near the upper bound, the cache relieves the external link, and domain fault tolerance stops depending on the state of a single machine.

Name service deployment options: comparing approaches

The name service in a domain covers two tasks with different requirements: resolving internal names and sending queries to the outside world. The choice of option comes down to where the zones physically reside, who replicates them, and through which node external traffic leaves.

Below are real alternatives that are chosen between during deployment. The "limitations" column shows what we pay with: usually it is either loss of fault tolerance or manual record maintenance.

Option When it fits Limitations
Zones integrated with Active Directory Multiple domain controllers, frequent record changes Replication only within the domain; the zone lives with the directory and is unavailable separately
Separate name service on a dedicated node Mixed environment, devices outside the domain, separation of administrator roles A second set of credentials and a separate point of failure; records are synchronized with the directory manually
Forward and reverse lookup zones Forward — service names; reverse — logs, tracing, PTR checks Reverse zones quickly become outdated when addresses change, and they are maintained manually
Query forwarding Client networks where all external traffic goes through one node Single exit point: if forwarding is unavailable, external resolution stops entirely
Conditional forwarding Multiple domains, partner networks, trusted forests The list of conditions grows; an error in the suffix sends internal queries outside

In practice, the working configuration is almost always hybrid: domain zones are integrated with the directory, external requests go through forwarding, and conditional forwarding is set up for partner networks. Then a controller address change is handled by replication, not manual record editing.

Reverse zones should be checked separately: without correct reverse lookup records, logs and access control systems show addresses instead of names, and incident analysis drags on. We examine how this is assembled for your environment.

Implementation stages: from zone and record audit to handover to support

We start with inventory, not with changing settings. We capture the current state: which zones are served, where storage is tied to Active Directory, which queries leave externally, and which servers actually handle name resolution.

Without this picture, any change is a lottery: editing one record breaks access to a file resource or mail, and the cause is searched for days.

  1. Zone and record audit. We export forward and reverse zones, find duplicates and conflicting A/CNAME records, ownerless records, and static entries that overlap with dynamic address assignment.
  2. Name resolution scheme. We determine which zones are primary, what is delegated, where queries for external domains go, and where forwarding is needed. The scheme records who asks whom.
  3. Configuration. We bring zone storage and replication to a uniform state, enable secure record updates, set TTLs and scavenging of stale records.
  4. Failure testing. We take turns disabling the domain controller and the forwarding server, checking whether names resolve from cache and how quickly access recovers. We separately test client restarts.
  5. Change policy. We describe who adds records, with what lifetime, how an erroneous change is rolled back, and where it is logged.
  6. Handover to support. We provide the zone scheme, server map, instructions for typical operations, and escalation points, plus set up response monitoring.

What the customer receives: configurations, diagrams, policies

A configured DNS without documentation is a black box: while it works, there are no questions, but at the first failure no one knows which zones replicate where and where an external query goes.

Therefore, we deliver the task as a package of artifacts that the support service accepts: the configuration can be compared with the working one, the diagram can be handed to a new engineer, and the policy can be attached to the general change procedure. We agree on the package composition at the start so that it matches your internal requirements.

  • Zone configuration export: forward and reverse zone files, SOA parameters with refresh timings, record lists — in a form suitable for transfer to another server without manual recovery.
  • Name resolution map: a diagram of how zones relate to the Active Directory domain, the order in which clients poll servers, forwarding for external domain names, and a stub zone for the root.
  • Record access policies: which administrators and departments can change records, where dynamic updates are allowed, and where only manual updates are allowed.
  • Replication and fault-tolerance scheme: which servers hold zone copies, and how clients switch when the primary is unavailable.
  • Change policy: the procedure for editing records, maintenance windows, who approves, how the configuration version is recorded, and how rollback is performed.
  • Support service instructions: typical requests about names and the domain, the diagnostic sequence, and signs that the issue is handed to the infrastructure team.
  • Acceptance protocol: a set of checks after changes — name resolution from different subnets, availability of external addresses, and correctness of reverse zones.

Documentation is updated together with the configuration, not separately from it: after each edit, a record remains in the policy about what changed and why. This makes it possible to return to the previous state in minutes, rather than reconstructing zone logic from memory.

Case study: how we eliminated name resolution downtime in a distributed network

The customer is a distributed network of several sites: domain controllers and DNS servers on Windows Server, zones integrated with Active Directory, plus external domains resolved through forwarding.

Conditional forwarders and zones at each site were maintained manually, so when the link to the central site failed, requests timed out instead of going to a backup server.

What the metrics showed before

The share of failed requests during peak hours reached 6–9%: users could not open shared directories and internal portals.

Recovery after a site failure took 40–60 minutes of manual work, and 12–18 zone and record edits accumulated per month — half of them were made after an outage had already occurred.

What we changed

We moved forwarding to a list of servers with availability checks, separated external domains into individual conditional forwarders so that a failure of one would not block the others.

We enabled scavenging of stale records and fixed zone replication within the forest, and began storing zone configuration in a version control system.

After the changes, the share of failed requests stays within 0.2–0.5%, and recovery time after a site failure has dropped to a few minutes — switching to the backup server happens without engineer intervention. Manual zone edits are down to 1–2 per month, and those are planned.

Rollback is also predictable: the zone configuration can be returned to the previous state without waiting for replication across the entire network. A failure of an individual site is no longer an event for the user.

What to do if the domain is already deployed but zones are not replicating?

A working domain is not a reason to go into the DNS console and make edits "as it seems." First we outline the gap: which controllers return the full zone and which return stale or empty answers.

Some clients cannot log in, a branch "does not see" the file server, although locally everything resolves — that means it is not the zone and the client that diverge, but the controllers themselves.

Name resolution diagnostics are built on polling each server separately — a query to the shared address will hide the divergence.

We look at the DNS service log, replication summary, the list of zone-holding servers, and service records of the directory: their expected state is described in Microsoft documentation.

An empty zone on one node while the others are alive is not a resolution failure but incomplete zone replication.

Usually the service zone and application partitions of the directory diverge: they have their own replication scopes, and a controller connected to a different scope produces a "semi-working" domain.

The second cause is records added manually outside dynamic updates: they live only on the node where they were created.

We align zones in order: first we bring replication scopes to a single state and wait for convergence, and only then edit the content. We replace manual records with dynamic ones and re-register them on each node, and delete extra copies after the working one responds correctly.

Before editing — a configuration snapshot and a rollback plan: an error in the service zone breaks login.

After the edits, we check name resolution from a client in each segment, login, access to shared resources, and re-verify replication after several cycles. Matching answers from all nodes are a sign that the gap is closed.

Technical concerns: replication, trust, change rollback

Before work starts, the customer's engineering team usually checks the same list: what will happen to replication between sites, how trust relationships between domains will behave, and whether a zone edit can be rolled back without a maintenance window. Below are the answers as we give them during a technical review, before the plan is approved.

How will replication between sites survive a link failure?

Zones integrated with the directory replicate along with it, so each site holds a full copy. When the link fails, the site continues to respond to its own segment, and after connectivity is restored, divergences are resolved automatically — no manual reconciliation is needed.

What about trust between domains and forwarding?

We divide the responsibility area immediately: internal names are handled by our controller, external ones go through conditional forwarding to the customer's or provider's servers.

Trust relationships between domains do not suffer from record editing, but we check them after every change.

Which ports should be opened between sites?

Name service — 53 TCP and UDP, separately the ports for directory service replication and time synchronization. We agree on the list with your security service before work starts: we open only what replication cannot work without, and the rest remains closed.

How is a change rolled back?

Before editing, we take a zone dump, and make changes first at one site. Rollback takes minutes: we restore the zone from the dump or disable a specific record, and the client cache expires according to the record's TTL.

Let's discuss your task: where to start and what to prepare

So that the timeline estimate is based on facts rather than assumptions, it is useful to send the infrastructure composition and the current name service configuration.

The more complete the inputs, the fewer clarifying iterations there are and the faster we will assemble a work plan for your maintenance windows.

  • List of servers with the DNS role: domain controllers, separate servers, and which clients query where for name resolution.
  • Zone export or settings export: forward and reverse zones, zones integrated with the domain, and their replication scopes.
  • Forwarding rules: external and conditional forwarders, where queries for external names go, and what is responsible for the root zone.
  • DHCP linkage: how dynamic records are registered, whether secure updates are enabled, and who owns the record.
  • Site and replication topology: links between sites, latencies, and local internet exit points.
  • Service and delegated records: service records, trusted zones, subdomains delegated to other servers.
  • Incident history: DNS server logs, name resolution failure cases, and response time during peak hours.

If some data is missing, that is not critical — we will assemble the inventory ourselves at the first stage. Describe the task in your own words: what is getting in the way now, what result is needed, and what constraints exist on access and windows.

We will come back with a timeline estimate and a work plan, and we will ask the engineers' questions as a single list, not one at a time over a week.