A DNS SRV query is a DNS lookup for a service location record. It returns the host name and port for a named service, allowing clients to find where a protocol service runs without hardcoding the server address.
What a DNS SRV query does
A DNS SRV query asks DNS for a service location record, which tells a client which host and port to use for a named service. That makes service discovery dynamic instead of hardcoding addresses into applications, and it is especially useful when a protocol service can move, scale, or be published under a stable service name.
Because SRV records encode both destination host and port, they sit at the boundary between naming and connectivity. That makes them operationally simple for clients, but also dependent on accurate DNS data, resolver behaviour, and the service naming convention that the application expects.
How SRV records are structured
An SRV record is defined by a service name, a protocol, a domain, a priority, a weight, a port, and a target host. In practice, the query is asking for the record that maps a service label such as a protocol-specific endpoint to the server that actually offers it.
Priority and weight let DNS express preference and basic load distribution among multiple targets. Clients should still treat the DNS answer as routing guidance, not as proof that the service is healthy or trustworthy, because the record only points to where the service should be reached.
Why SRV queries matter for service discovery
SRV records reduce application coupling to infrastructure. Instead of baking in a hostname and port, software can ask DNS at runtime and follow the published service location, which helps when deployments change, when multiple instances exist, or when service endpoints need to be renamed without editing every client.
This pattern is common in enterprise service discovery, directory-integrated services, voice and collaboration systems, and other environments where clients need to locate a named function rather than a fixed server. For directory-heavy environments, Active Directory Fundamentals is a useful companion because it explains how DNS service records support directory and trust discovery.
Operational and security implications
SRV lookups are only as reliable as the DNS data behind them. If records are stale, misconfigured, or poisoned, clients may connect to the wrong host, fail over poorly, or send traffic to an unintended service endpoint. In environments that rely on DNS telemetry, the query itself can also become an important visibility point.
DNS service discovery is also a useful signal for defenders because many legitimate applications generate SRV lookups during normal startup and service location. If an environment already logs DNS activity, a DNS Logging and Detection Guide helps explain what to retain and how to interpret service lookup behaviour, while Sysmon Guide is relevant where endpoint telemetry is used to correlate local DNS activity with process behaviour. In broader network design, DDI is the natural control plane context for managing DNS records, resilience, and visibility.
When practitioners should pay attention
Why practitioners should care: A DNS SRV query is often a quiet dependency, but service discovery can become a source of outage, misrouting, or blind spots if record ownership, TTLs, and authoritative updates are poorly governed. It is worth reviewing whenever an application starts failing only after an infrastructure change or when clients seem to reach the wrong backend.
What to watch for: Unexpected SRV queries, missing records, inconsistent answers across resolvers, or clients falling back to hardcoded endpoints usually indicate that service discovery is not behaving as designed. Those symptoms often show up before a visible application outage.
Practitioner takeaway: Treat SRV records as part of the service delivery contract, not just as DNS metadata. The record is small, but the operational dependency it creates is real.
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 technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | SC-20 — Secure Name/Address Resolution Service (Authoritative Source) | SRV queries depend on trustworthy name resolution for service endpoints. |
| AU-12 — Audit Record Generation | DNS SRV lookups are operational events that benefit from logged resolution activity. | |
| Recommendation — Protect authoritative DNS answers and validate service-location resolution paths. Enable DNS-related audit records to support troubleshooting and detection. | ||
| CIS Controls v8 | 8 — Audit Log Management | DNS query logging is a core way to observe service discovery and abnormal lookups. |
| Recommendation — Collect and review DNS logs for service discovery and suspicious resolution patterns. | ||
| NIST CSF 2.0 | DE.CM-08 — Network Monitoring | SRV lookups are network-resolved events that fit continuous monitoring of DNS activity. |
| Recommendation — Monitor DNS resolution behavior for anomalies and service-discovery failures. | ||
| ISO/IEC 27001:2022 | A.8.16 — Monitoring activities | DNS SRV behaviour should be monitored because it affects service reachability and trust in routing data. |
| Recommendation — Monitor DNS service records and resolver behaviour for unexpected changes. | ||
Related resources from NHI Mgmt Group
- Why does DNS spoofing remain dangerous even if the first malicious query is brief?
- Why do DNS query logs matter when investigating misconfigurations?
- How should security teams detect ransomware command and control domains without inspecting every DNS query continuously?
- What does unusual DNS query activity usually indicate?
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org