Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› DNS SRV Record
Cyber Security

DNS SRV Record

← Back to Glossary
By NHI Mgmt Group Updated October 31, 2026 Domain: Cyber Security

A DNS SRV record is a service-location entry that tells clients which host provides a given service, such as LDAP or Kerberos. In Active Directory environments, these records are useful because they reveal where domain services live and help map the directory infrastructure quickly and reliably.

What SRV records do in DNS

SRV records let a client discover which host and port should handle a named service, rather than hard-coding that destination. They are common in directory and messaging environments because the service name stays stable while the underlying server can change, scale, or move.

That indirection makes SRV records useful for resilience and service discovery, but it also means the record itself becomes an important piece of infrastructure metadata. If the record is wrong, stale, or exposed, clients may fail open, fail to connect, or be directed toward the wrong endpoint.

How SRV lookup works

An SRV record is queried by service name, protocol, and domain, then returns the target host plus priority and weight values. Clients use those fields to choose among available service endpoints, which is why SRV is often paired with directory lookup, messaging brokers, and other service-oriented protocols.

Operationally, SRV records sit inside the DNS resolution chain, so they inherit DNS reliability, caching, and visibility characteristics. If the record is published in public DNS, anyone can enumerate the advertised service location; if it is internal-only, its value depends on consistent internal name resolution and zone management.

For the underlying DNS mechanics, record behavior, TTLs, and resolution flow, the DNS Protocol Fundamentals for Defenders Guide explains how record types shape client behavior and detection opportunities.

Why SRV records matter in enterprise environments

In Active Directory and similar directory deployments, SRV records often reveal where domain controllers and related services live, which helps clients locate services without static configuration. That same convenience also gives defenders a fast way to map infrastructure dependencies and spot missing or inconsistent service publication.

Because SRV records are part of service discovery, they influence authentication workflows, LDAP discovery, Kerberos location, and other service-dependent operations. When those records drift from reality, the result is often intermittent connectivity, failed service discovery, or clients falling back to less desirable paths.

The relevant authoritative registry for service and protocol parameters is IANA, which is the reference point for DNS-related protocol identifiers and registry allocations.

Security implications of exposed or stale SRV records

SRV records can help an attacker learn how an environment is laid out, especially when they expose internal service names, directory hosts, or legacy endpoints. That visibility is not usually catastrophic on its own, but it can reduce the effort needed to target misconfigurations, trust relationships, or adjacent DNS weaknesses.

In practice, the bigger security problem is often not the SRV record alone but the failure mode around it: a record that still points to decommissioned infrastructure, a record that is published too broadly, or a record that is trusted more than the service it names deserves.

If you want the broader DNS threat context around hijacking, tampering, and record abuse, DNS Security Guide covers the defensive controls that help keep DNS metadata reliable.

Practical administration of SRV records

SRV records should be managed as service inventory, not just as DNS entries. That means checking that each record still matches a real, intended service, reviewing whether it belongs in public or private DNS, and confirming that priority and weight values still reflect the intended routing behavior.

When services are moved, renamed, or retired, the DNS record should be updated in the same change window, because stale service-location data can become an availability issue before it becomes an obvious security issue. Teams should also treat SRV records as part of decommissioning and cleanup, not as a one-time setup artifact.

If the record is tied to a service exposure problem or a dangling dependency, the Subdomain Takeover and Dangling DNS Guide is the most relevant companion for understanding how stale DNS can turn into takeover risk.

Risk and Threat Considerations

SRV records are attractive to defenders because they make service discovery reliable, but that same discoverability can aid reconnaissance and expose stale trust paths. The main risk is not the record format itself, but the consequences of publishing service-location data that no longer matches reality or that exposes more of the internal topology than intended.

Failure mechanism: Stale, mis-scoped, or publicly exposed SRV records can misdirect clients, reveal service placement, or preserve trust in retired infrastructure that should no longer be reachable.

Impact: The result can be failed authentication flows, degraded availability, easier targeting of internal services, or a faster path to takeover when the advertised host has been decommissioned or reused unsafely.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-2 — Identification and Authentication (Organizational Users)SRV records often support directory service discovery used in authentication flows.
CM-8 — System Component InventorySRV records help reveal service components and should align with asset inventory.
SC-20 — Secure Name / Address Resolution Service (authoritative source)SRV records are DNS resolution data and depend on trustworthy name resolution.
Recommendation — Review service-discovery records alongside authentication dependencies to prevent broken logon paths. Map SRV targets to inventory records and remove entries for retired or unmapped services. Harden DNS resolution paths so service-location records cannot be tampered with or misused.
CIS Controls v8CIS-1 — Inventory and Control of Enterprise AssetsSRV records expose service endpoints and should track active assets.
Recommendation — Keep DNS service records synchronized with the authoritative asset inventory.
NIST CSF 2.0ID.AM-01 — Physical Devices and Systems InventorySRV records are a discoverable source of system and service inventory information.
Recommendation — Use SRV data to validate the completeness of your service inventory and naming records.

Practitioner Guidance

Why practitioners should care: SRV records are part of the control plane for service discovery, so they deserve the same lifecycle discipline as the services they point to. If the record is wrong, the failure often surfaces as an application problem, not a DNS problem, which makes ownership and review especially important.

Governance implication: Treat SRV publication, update, and removal as a named responsibility within DNS and service ownership. The record should have an explicit owner, and changes to the underlying service should trigger a DNS review rather than relying on ad hoc cleanup.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org