LLMpediaThe first transparent, open encyclopedia generated by LLMs

SRV record

Generated by GPT-5-mini
Note: This article was automatically generated by a large language model (LLM) from purely parametric knowledge (no retrieval). It may contain inaccuracies or hallucinations. This encyclopedia is part of a research project currently under review.
Article Genealogy
Parent: DNS Hop 4
Expansion Funnel Raw 86 → Dedup 0 → NER 0 → Enqueued 0
1. Extracted86
2. After dedup0 (None)
3. After NER0 ()
4. Enqueued0 ()
SRV record
NameSRV
TypeDNS resource record
Introduced1998
RFC2782
Purposeservice location
OwnerInternet Engineering Task Force

SRV record

An SRV record is a Domain Name System resource record used to specify the location of servers for specified services, providing hostname and port mapping for service discovery. It complements records such as A record and AAAA record by enabling protocols and applications to find service endpoints and is widely used in protocols like SIP (protocol), XMPP, and Kerberos. Introduced by the Internet Engineering Task Force via an RFC, SRV records are implemented across many domain name registrars, DNS server software packages, and cloud providers.

Overview

SRV records were defined in an RFC published by the Internet Engineering Task Force and standardized to allow clients to discover service hosts and ports without hardcoding addresses, similar to how MX record enables mail routing for Simple Mail Transfer Protocol. They are used by protocols such as Session Initiation Protocol, Extensible Messaging and Presence Protocol, and Lightweight Directory Access Protocol to locate services, helping endpoints hosted by vendors like Microsoft, Cisco Systems, Google, Amazon (company), and Cloudflare interoperate. Service discovery via SRV supports deployments across infrastructure from on-premises systems at organizations like IBM and Oracle Corporation to public cloud platforms such as Amazon Web Services, Microsoft Azure, and Google Cloud Platform.

Format and Syntax

The SRV record syntax specifies fields including priority, weight, port, and target; it is written in DNS zone files handled by software like BIND (software), PowerDNS, Knot DNS, and Microsoft DNS. The record name uses a service and protocol label convention (for example the _service._proto.domain pattern used by SIP (protocol) and XMPP). The record structure was codified in an RFC by working groups associated with the Internet Engineering Task Force and is supported by DNS resolver implementations in operating systems such as Linux, FreeBSD, Microsoft Windows, and macOS. Administrators manage SRV entries in control panels of registrars like GoDaddy, Namecheap, and Gandi or via APIs of providers like DigitalOcean and Hetzner.

Usage and Applications

SRV records are central to telephony and messaging stacks where protocols like SIP (protocol), Extensible Messaging and Presence Protocol, and XMPP require dynamic lookup of service endpoints to support clients such as those from Avaya, Polycom, Cisco Systems, and Microsoft Teams. Directory services and authentication deployments using Kerberos and Active Directory often leverage SRV to locate domain controllers and key distribution centers, affecting products from Microsoft Corporation and Red Hat. Other applications include clustering and failover for middleware from vendors like VMware, HashiCorp, and Red Hat, and service mesh discovery when integrated with projects from CNCF such as Kubernetes and Envoy (software).

Priority, Weighting, and Portability

SRV records use priority and weight semantics to control failover and load balancing: lower priority values are preferred, and weight values distribute traffic among equal-priority targets, concepts similar to mechanisms used by BGP route preferences and DNS round-robin practices. These semantics are honored by clients and libraries implemented in ecosystems like OpenSSL, GnuTLS, libcurl, and Node.js, and by application frameworks from Apache Software Foundation projects such as Apache HTTP Server and Tomcat. Port values in SRV entries allow clients to connect to nonstandard TCP or UDP ports used by services from vendors such as Oracle Corporation, IBM, and SAP SE, improving portability across heterogeneous deployments in enterprises, research institutions like CERN, and educational networks associated with universities like MIT and Stanford University.

Implementation and Deployment

Deploying SRV records requires coordination among DNS administrators, network operators, and application developers; tools like BIND (software), PowerDNS, Knot DNS, and cloud DNS products from Amazon Web Services Route 53, Google Cloud DNS, and Microsoft Azure DNS provide mechanisms for authoring SRV records. Integration is common in managed services from Office 365, Google Workspace, and hosted communications platforms from Twilio and Vonage, while enterprise directory integrations appear in Active Directory and FreeIPA stacks. Monitoring and orchestration tools from vendors like Nagios, Prometheus, Grafana Labs, and Datadog help validate SRV record propagation, DNSSEC signing is supported by implementations in OpenDNSSEC and BIND (software), and automation frequently uses infrastructure-as-code tools such as Terraform and Ansible.

Security and Operational Considerations

Operational security of SRV records involves ensuring integrity and authenticity via DNSSEC signatures and protecting management interfaces at registrars and DNS providers like Cloudflare and Amazon (company). Clients must handle malicious or misconfigured SRV data similarly to how TLS/SSL validation is enforced by libraries maintained by projects such as OpenSSL and BoringSSL, and administrators should audit access using identity providers like Okta and Ping Identity. Abuse scenarios can mirror DNS-based attacks seen in incidents involving actors tracked by organizations like CISA and ENISA, and incident response may involve coordination with regional registries such as ARIN, RIPE NCC, and APNIC. Careful operational practices align with standards from bodies like the Internet Engineering Task Force and industry guidelines published by organizations such as IEEE and IETF working groups.

Category:Domain Name System