Active Directory Series

🗂️ Reading DNS Zones and Records from a "Top 1%" Perspective — The Practical Meaning of Forward Lookup Zones, _msdcs, and SRV Records

Introduction

This article is part of the Top 1% Series’ full article guide, and the fifth article in the Active Directory series. Basic record types like A, CNAME, and MX, and general concepts like recursive resolvers and authoritative servers, are covered in Understanding How DNS Works from a “Top 1%” Perspective; this article focuses on the zone structure and SRV records specific to AD environments. It also assumes you understand the meaning of the domain/forest boundary from Understanding the Difference Between AD and DC, and Domains vs. Forests, from a “Top 1%” Perspective.

Prerequisites

Getting the Big Picture

The Layout of the DNS Manager Screen

This article is centered on learning to read the screen of DNS Manager (dnsmgmt.msc, also reachable from Server Manager’s “Tools” menu), the Windows Server management tool. Opening DNS Manager shows the connected DNS server’s name in a tree on the left, with folders such as “Forward Lookup Zones,” “Reverse Lookup Zones,” and “Conditional Forwarders” underneath it. Expanding a zone’s folder lists the individual records registered in that zone (A records, SRV records, and so on), and right-clicking lets you add a new record or check the zone’s properties. In practice, “open DNS Manager and check” means walking this tree to find the relevant zone or record.

Forward Lookup Zones and Reverse Lookup Zones

When you open DNS Manager, zones are broadly displayed in two categories:

graph LR
    subgraph Forward["Forward lookup zone: corp.example.com"]
        A1["A record: dc01 → 10.0.20.10"]
    end
    subgraph Reverse["Reverse lookup zone: 20.0.10.in-addr.arpa"]
        P1["PTR record: 10 → dc01.corp.example.com"]
    end
    Forward -.independent, separate data.-> Reverse

Forward and reverse lookup zones don’t reference each other — they’re separate, independently managed and registered pieces of data. Adding an A record to a forward lookup zone doesn’t automatically create a corresponding PTR record in the reverse lookup zone (if dynamic updates are enabled for both, they’re usually both registered together, but if the reverse lookup zone hasn’t even been created, no PTR record gets registered at all). This asymmetry is sometimes the cause of a real-world headache — “name resolution works, but reverse lookups alone don’t.”

Fundamentals, Explained Thoroughly

The True Identity of the _msdcs Zone

Open the forward lookup zone of an AD-integrated DNS server, and alongside the ordinary list of hostnames, you’ll always find a folder (or a zone in its own right) named _msdcs. This stands for Microsoft DCS (Domain Controller Locator Service), and it’s a dedicated location that holds a special set of records for clients to search for “where’s the DC for this domain (or forest).”

In current Windows Server, this _msdcs is, in most cases, not just a folder inside the forest root domain’s forward lookup zone — it’s created as its own independent forward lookup zone, named _msdcs.<forest root domain name>. There’s an important reason for this.

This design is exactly the same idea applied from what was explained in Understanding the Difference Between AD and DC, and Domains vs. Forests, from a “Top 1%” Perspective: “the configuration and schema partitions are shared across the entire forest, while the domain partition stays confined to the domain.” Since _msdcs’s records are information referenced across domains, forest-wide, they need to be replicated over a wider scope than an ordinary domain zone.

Is the `_msdcs` zone only for finding the forest root domain's DC?

This is an easy point to misunderstand. Looking only at the zone name _msdcs.<forest root domain name>, it reads as if it were “a special zone for finding the forest root domain’s DC.” More precisely, though, the “forest root domain name” part of that zone name is just describing where the zone itself lives (the root of its namespace). Inside this one zone, you’ll actually find each domain’s own “find that domain’s DC” records, for every domain in the forest, not just the forest root — kept distinct by domain name (for example, _ldap._tcp.dc._msdcs.corp.example.com exists inside this same _msdcs zone even when corp.example.com is a child domain). In other words, the design isn’t “a separate _msdcs zone per domain” — it’s “one _msdcs zone for the whole forest, holding every domain’s records together.”

So why consolidate this into one dedicated zone, rather than having each domain hold this information (including the forest root’s DC records) inside its own ordinary forward lookup zone? The reason is to make cross-domain lookups symmetric and simple. If each domain only held DC information inside its own zone, a client in one domain trying to find a DC in a different domain would first need to already know that other domain’s DNS zone name by some other means (without knowing what domains exist in the forest, you can’t even construct the query’s target zone name in the first place). By contrast, the name _msdcs.<forest root domain name> can always be derived as the exact same single name by any member of any domain in the forest, as long as they know the forest root domain’s name. Consolidating every domain’s information into this “one place everyone already knows” is exactly what lets forest-wide lookups — like finding a global catalog server — work without needing any special prior knowledge.

GUID-based CNAME records: how a DC is never lost even when its name changes

As background: a GUID (Globally Unique Identifier) is the general term for an identifier generated from a 128-bit value, designed so collisions essentially never happen. In AD DS, essentially every object — users, computers, DCs themselves — gets assigned one such GUID at the moment it’s created, and that GUID never changes for as long as the object exists, even if its name changes. A CNAME record, meanwhile, is a type of DNS record that registers one name as an “alias” pointing to another name. For example, if you register a CNAME record for www.example.com pointing to web01.example.com, a query for www.example.com automatically ends up looking at web01.example.com’s A record. The basic use of a CNAME is that you can later swap out just the forwarding target (web01.example.com in this example) without touching the reference point (www.example.com) itself.

Directly under the _msdcs zone, instead of ordinary hostnames, there’s a CNAME record named after each DC’s unique NTDS Settings object GUID (such as a1b2c3d4-....), one per DC. Each of these CNAME records forwards that GUID to that DC’s actual A record (hostname).

This mechanism exists because references between replication partners, and some client-side processing, permanently identify a DC by this GUID rather than by hostname. As we saw in What’s the Difference Between sysdm.cpl and netdom computername?, a DC’s computer name (hostname) can change, but its GUID, once issued, never does. As long as a reference goes through this GUID-based CNAME record, even if that DC’s hostname is later changed, the reference automatically and correctly ends up at the A record for the new hostname, as long as the GUID itself hasn’t changed. This is one reason internal consistency doesn’t easily break even when a computer name is changed after demoting a DC.

What Is an SRV Record? A Record Type for Finding “Who Provides This Service”

The A records covered in Understanding How DNS Works from a “Top 1%” Perspective only answer the question “what’s the IP address for this name.” But in practice, there are situations where you need to find a server by role, not name — such as “which server provides the LDAP service” or “which server is the Kerberos Key Distribution Center (KDC).” This is what the SRV record (Service record) answers.

An SRV record indicates a service’s location in the following format:

_service-name._protocol.domain-name  priority  weight  port  target (hostname)

Here are the representative SRV records actually registered in an AD environment:

SRV record name (example)Meaning
_ldap._tcp.dc._msdcs.corp.example.comLocate a DC (LDAP service provider) for this domain
_ldap._tcp.<site-name>._sites.dc._msdcs.corp.example.comLocate only DCs at a specific AD site (location)
_ldap._tcp.pdc._msdcs.corp.example.comLocate the single DC holding the PDC emulator role
_ldap._tcp.gc._msdcs.<forest root domain>Locate a global catalog server anywhere in the forest
_kerberos._tcp.dc._msdcs.corp.example.comLocate a KDC for Kerberos authentication (usually also served by a DC)

The priority and weight fields represent the order of preference and the load-balancing ratio for choosing among multiple servers holding the same role. A client tries to connect to one server chosen at random from the group with the lowest priority value, with a probability proportional to its weight.

Let’s work through a concrete example. Suppose the following three SRV records are registered for a given service:

TargetPriorityWeight
dc01.corp.example.com050
dc02.corp.example.com050
dc03.corp.example.com10100

In this case, the client first narrows its candidates to the group with the lowest priority (0) — dc01 and dc02 (dc03, at priority 10, is a backup used only if neither dc01 nor dc02 can be reached). Since dc01 and dc02 have equal weights of 50:50, each has roughly an even chance of being picked. If dc01’s weight were 80 and dc02’s were 20, dc01 would be picked roughly 80% of the time and dc02 roughly 20%, in proportion to the weight ratio. In other words, priority controls “which group is preferred,” while weight controls “the split within that same priority” — and in practice, it’s common to combine the two: use priority to distinguish in-site from out-of-site DCs, and use weight to balance load according to differences in server specs.

Why site-aware DC location matters

The _sites-suffixed SRV records mentioned above exist to let a client preferentially find a DC that’s geographically and network-wise close by — belonging to the same AD site. An AD site is a piece of AD DS configuration information that defines a set of IP subnets as “the same location (a range connected by fast links).” Without this mechanism, if a client always connected randomly to any DC in the forest, a client at an overseas branch would end up querying a distant head-office DC every time, causing significant delays on every authentication or policy application. The DC locator preferentially searches for a DC within the same site first, and only falls back to a DC at another site if none is found.

How to Actually Read the DNS Manager Screen

When you open DNS Manager in practice, the following viewpoints make the information much easier to read:

  1. In the list of forward lookup zones, check whether both the target domain name (corp.example.com) and _msdcs.<forest root domain> exist — the former is the domain zone; the latter is the special zone shared across the entire forest.
  2. Directly under the domain zone (corp.example.com), check whether an A record corresponding to each DC’s hostname exists correctly — if it’s missing, or points to a stale IP address, reachability to that DC itself will suffer.
  3. In the _msdcs zone’s dc folder (and under _sites), check whether the expected number of SRV records for your DCs are registered — whether the name of an old DC that should already have been removed still lingers here is a particularly important checkpoint when confirming post-migration cleanup (covered in a later article).
  4. Check whether the count of GUID-named CNAME records directly under the _msdcs zone matches the actual number of running DCs — a mismatch could indicate leftover remnants of a DC that wasn’t correctly demoted and removed.

The View From the Top 1% Perspective

Verifying SRV Record Health with dnslint

Microsoft provides a command-line tool called dnslint to comprehensively verify whether there’s a problem with the DNS configuration of an AD environment. The dnslint /ad option in particular checks, in one pass, against a specified DC, whether all the key SRV records under _msdcs mentioned above register and resolve as expected, and outputs a report in HTML format. Rather than eyeballing the DNS Manager screen one item at a time, using a tool like this to verify everything at once is the practical approach in large-scale environments.

Practical Problems Caused by the Asymmetry Between Forward and Reverse Lookup Zones

As noted, forward and reverse lookup zones are independent data. This asymmetry can occasionally affect real-world operation in the form of the use of reverse lookups in Kerberos authentication. Some applications and services (particularly legacy implementations) use reverse lookups (PTR records) for SPN validation or logging purposes, and in an environment where the reverse lookup zone isn’t correctly configured, or dynamic updates aren’t enabled, this can lead to a puzzling symptom: name resolution itself works fine, yet only a specific service throws authentication errors or suffers degraded performance.

Common Misconceptions and Pitfalls

The Troubleshooting Perspective

For AD issues rooted in DNS zones and records, the basic approach is to confirm, starting with _msdcs, whether the required records actually exist and have the correct content.

  1. A specific client can’t find a DC (unstable logons): On the DNS server that client is querying, confirm using nslookup (run set type=srv and then query _ldap._tcp.dc._msdcs.<domain-name>) whether the expected DC’s SRV records are correctly registered in the _msdcs zone.
  2. After an AD migration, an old DC that should already have been removed still shows up in search results: Check whether the SRV records and GUID-named CNAME record in the _msdcs zone still contain leftover information about the old DC (the demotion process may have been incomplete).
  3. Name resolution works, but authentication fails for a specific service only: Check whether the reverse lookup zone is correctly configured, and whether its PTR records match the content of the forward lookup zone.

Preventive Measures and Permanent Fixes

Summary

What to Keep in Mind From Today

  1. When you open DNS Manager, first confirm that a _msdcs.<forest root domain> zone exists in its own right, and keep in mind that it has a different replication scope than an ordinary domain zone.
  2. During an AD migration or incident response, remember that querying SRV records directly with nslookup can confirm health faster than eyeballing the DNS Manager screen.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).