大网数据广告活动
网络与域名解析

Verify that SRV Domain Name System (DNS) records have been created

· 52CE 我爱测

Describes how to verify Service Location (SRV) locator resource records for a domain controller after you install the Active Directory directory service.

This article describes how to verify Service Location (SRV) locator resource records for a domain controller after you install the Active Directory directory service.

Original KB number:   816587

Summary

The SRV record is a Domain Name System (DNS) resource record. It's used to identify computers hosting specific services. SRV resource records are used to locate domain controllers for Active Directory. To verify SRV locator resource records for a domain controller, use one of the following methods.

Method 1: Use DNS Manager

After you install Active Directory on a server that's running the DNS service, you can use the DNS Management Console to verify that the appropriate zones and resource records are created for each DNS zone.

Active Directory creates its SRV records in the following folders, where <Domain_Name> is the name of your domain:

  • Forward Lookup Zones/Domain_Name/_msdcs/dc/_sites/Default-First-Site-Name/_tcp
  • Forward Lookup Zones/Domain_Name/_msdcs/dc/_tcp

In these locations, an SRV record should appear for the following services:

  • _kerberos
  • _ldap

Method 2: View Netlogon.dns

If you're using non-Microsoft DNS servers to support Active Directory, you can verify SRV locator resource records by viewing Netlogon.dns. Netlogon.dns is located in the %systemroot%\System32\Config folder. You can use a text editor, such as Notepad, to view this file.

The first record in the file is the domain controller's Lightweight Directory Access Protocol (LDAP) SRV record. This record should appear similar to the following one:

_ldap._tcp. <Domain_Name>

Method 3: Use Nslookup

Nslookup is a command-line tool that displays information you can use to diagnose Domain Name System (DNS) infrastructure.

To use Nslookup to verify the SRV records, follow these steps:

  1. On your DNS, select Start > Run.
  2. In the Open box, type cmd.
  3. Type nslookup, and then press ENTER.
  4. Type set type=all, and then press ENTER.
  5. Type _ldap._tcp.dc._msdcs.Domain_Name, where <Domain_Name> is the name of your domain, and then press ENTER.

Nslookup returns one or more SRV service location records that appear in the following format, where <Server_Name> is the host name of a domain controller, and where <Domain_Name> is the domain where the domain controller belongs to, and <Server_IP_Address> is the domain controller's Internet Protocol (IP) address:

Server: localhost
Address: 127.0.0.1
_ldap._tcp.dc._msdcs.Domain_Name
SRV service location:
priority= 0
weight= 100
port= 389 srv hostname= Server_Name . Domain_Name Server_Name . Domain_Name internet address = Server_IP_Address

For more information about the SRV records that are registered by Netlogon, see SRV Records Registered by NetLogon.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。