🗂️ Reading DNS Zones and Records from a "Top 1%" Perspective — The Practical Meaning of Forward Lookup Zones, _msdcs, and SRV Records
Introduction
- What You’ll Learn From This Article: This article systematically explains the meaning of the “forward lookup zone” / “reverse lookup zone” distinction you always see when you open DNS Manager, the true identity of the oddly named
_msdcszone that always appears inside an AD zone, and how a record type that plain A records can’t explain — the SRV record — is actually used in an AD environment. Along the way, it also lays out a practical reading guide for what to check where on the DNS Manager screen. - Intended Audience: This article is aimed at engineers who’ve seen the DNS Manager screen but can’t explain what the
_msdcsfolder or SRV records inside a forward lookup zone mean, and who want to be able to read the information they need off the DNS Manager screen during an AD migration or incident response. - Estimated Reading Time: About 18 minutes
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
- Zone: In DNS, the unit of data that a given server (or set of servers) holds authoritative responsibility for, covering a specific portion of the namespace.
- A records and SRV records: An A record is the basic record type that converts a hostname to an IPv4 address. An SRV record is a more sophisticated record type indicating “which server provides a specific service” — covered in detail in this article.
- AD-integrated zones and replication partitions: AD-integrated zone data may be managed separately from the ordinary domain partition. This distinction is the key to understanding the special treatment of the
_msdcszone, covered below. - Forest root domain: The first domain ever created within a forest. As covered in The Difference Between Domains, Trees, and Forests, a forest can be made up of multiple domains (trees), but the very first one built gets special treatment — it’s the default home for forest-wide groups like Enterprise Admins and Schema Admins, and it also appears as part of the
_msdcszone’s name, covered in this article. “Forest” and “forest root domain” are distinct things: the latter is just one (albeit special) domain among the many that make up the forest.
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:
- Forward Lookup Zone: Handles “name → IP address” conversion. Inside a domain name like
corp.example.com, you’ll find A records and the like corresponding towwwor individual PC names. In practice, “registering a DNS record” almost always means registering it in this forward lookup zone. - Reverse Lookup Zone: Handles “IP address → name” conversion (reverse lookups). The zone name is expressed in a special format listing the IP address range in reverse (for example,
10.0.20.0/24becomes20.0.10.in-addr.arpa), and its contents are PTR records.
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.
- Ordinary domain zone data (an AD-integrated zone) is, by default, saved as data corresponding to AD DS’s domain partition — replicated only among DCs within that domain (more precisely, stored in a dedicated application partition called
DomainDnsZones). - The
_msdcszone, on the other hand, needs to be referenceable by clients in any domain in the forest (for example, when a member computer in one domain needs to look up a DC or global catalog server in a different domain within the forest), so it’s stored in a separate application partition,ForestDnsZones, replicated among all DCs across the entire forest.
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.com | Locate a DC (LDAP service provider) for this domain |
_ldap._tcp.<site-name>._sites.dc._msdcs.corp.example.com | Locate only DCs at a specific AD site (location) |
_ldap._tcp.pdc._msdcs.corp.example.com | Locate 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.com | Locate 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:
| Target | Priority | Weight |
|---|---|---|
| dc01.corp.example.com | 0 | 50 |
| dc02.corp.example.com | 0 | 50 |
| dc03.corp.example.com | 10 | 100 |
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:
- 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. - 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. - In the
_msdcszone’sdcfolder (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). - Check whether the count of GUID-named CNAME records directly under the
_msdcszone 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
- Misconception 1: “_msdcs is just an annoying folder you don’t need to worry about the contents of”
_msdcsis a zone at the heart of AD DS, holding the SRV records essential for clients to locate DCs, global catalogs, and KDCs. Its special, forest-wide replication scope is a particularly important thing to keep in mind. - Misconception 2: “If a forward lookup zone has an A record, a corresponding reverse-lookup record automatically exists too” Forward and reverse lookup zones are independent pieces of data — no corresponding PTR record exists unless the reverse lookup zone itself has been created and configured.
- Misconception 3: “SRV records are too specialized to be used outside of AD” SRV records are a general-purpose DNS record type, widely used as a standard service-discovery mechanism far beyond AD — including for SIP (VoIP) and XMPP (chat), among others.
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.
- A specific client can’t find a DC (unstable logons): On the DNS server that client is querying, confirm using
nslookup(runset type=srvand then query_ldap._tcp.dc._msdcs.<domain-name>) whether the expected DC’s SRV records are correctly registered in the_msdcszone. - 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
_msdcszone still contain leftover information about the old DC (the demotion process may have been incomplete). - 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
- In large-scale environments, use a tool like
dnslint /adto regularly verify SRV record health rather than relying on visual inspection. - When setting up a new forward lookup zone, always consider creating a corresponding reverse lookup zone and enabling dynamic updates for it as a set.
- When demoting and removing a DC, always confirm that the
_msdcszone’s SRV records and GUID-named CNAME record have been correctly deleted.
Summary
- Forward lookup zones handle name → IP, and reverse lookup zones handle IP → name; they’re mutually independent pieces of data.
- The
_msdcszone is a special zone holding the SRV records clients need to locate DCs, global catalogs, and KDCs — since it’s information that needs to be shared across the entire forest, it’s stored in theForestDnsZonespartition and replicated over a wider scope than an ordinary domain zone. - SRV records are a record type for finding a server by role rather than by name, with priority and weight controlling selection and load balancing among multiple servers.
- In DNS Manager, checking three types of information in sequence — the domain zone’s A records, the
_msdcszone’s SRV records, and the GUID-named CNAME records — lets you practically read off the DNS health of an AD environment.
What to Keep in Mind From Today
- 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. - During an AD migration or incident response, remember that querying SRV records directly with
nslookupcan confirm health faster than eyeballing the DNS Manager screen.