📡 SRV Lookup Tool
Check any service record — priority, weight, port, and target host — for SIP, XMPP, LDAP, Minecraft, Active Directory and more. Live, free, no signup.
- What Is an SRV Record?
- SRV Record Syntax
- Priority, Weight, Port & Target
- How This Tool Queries SRV Data
- DNS Service Discovery Explained
- Microsoft Active Directory
- SIP & VoIP Services
- XMPP Federation
- LDAP Directory Services
- Minecraft Servers
- Load Balancing & Failover
- Enterprise & Cloud Deployments
- Comparison Tables
- Automation & API Usage
- Security Considerations
- Performance
- Common Mistakes
- Best Practices
- Pros & Cons
- Troubleshooting
- Expert Tips
- FAQ
- Related Tools
🔍 What Is an SRV Record?
An SRV (Service) record, defined in RFC 2782, publishes the location of a specific named service under a domain — which host actually runs it, which port it listens on, and how clients should choose between multiple available servers. Where an A record answers "where is this hostname," an SRV record answers a more specific question: "where is the SIP service, or the LDAP service, or this particular game server, for this domain — right now, on whatever host and port it's actually configured on."
This distinction matters because it decouples a service's logical identity (the domain a user types or configures) from its physical deployment details (the actual server and port it runs on today). A service can move to a new host, change ports, or scale across multiple redundant servers, and none of that requires changing anything the end user sees — only the SRV record needs updating, and every properly configured client picks up the change automatically on its next lookup.
📋 SRV Record Syntax
_sip._tcp.example.com. 3600 IN SRV 10 60 5060 sipserver.example.com.
| | | |
priority weight port target
The record name itself follows a strict format: an underscore-prefixed service name, an underscore-prefixed protocol, then the domain — _service._proto.name. The underscore prefixes exist specifically to avoid collisions with real hostnames, since "_sip" and "_tcp" aren't valid hostname labels on their own, making it unambiguous that this is a service discovery record rather than an ordinary subdomain.
🎯 Priority, Weight, Port & Target
| Field | Purpose |
|---|---|
| Priority | Lower numbers are preferred; clients try the lowest-priority target(s) first |
| Weight | Among targets sharing the same priority, distributes load proportional to weight |
| Port | The TCP or UDP port the service actually listens on |
| Target | The hostname actually running the service — needs its own A/AAAA record |
Priority and weight work together the same way MX record priority does, but with an added load-distribution layer: a client first sorts all returned targets by priority, ascending. Within any group sharing the same priority, targets are selected randomly in proportion to their weight — a target with weight 60 gets roughly twice the traffic of one with weight 30 at the same priority level. A weight of 0 is valid and means "no preference within this priority tier, but should still be usable."
⚙️ How This Tool Queries SRV Data
You Enter a Full Service Name
Type the complete underscore-prefixed service, protocol, and domain.
An SRV Query Is Sent
The tool queries a public DNS resolver for the SRV record type against that exact name.
Every Target Is Parsed
Priority, weight, port, and target host are extracted for each returned record.
Results Are Sorted by Priority
Targets are displayed in the order a real client would actually try them.
🔎 DNS Service Discovery Explained
SRV records are the core mechanism behind what's broadly called DNS-based service discovery — letting an application find a service's actual network location dynamically, through a lookup, rather than requiring a hardcoded hostname and port baked into configuration. This pattern predates and, in many enterprise contexts, still outperforms newer service-discovery systems for its simplicity: no additional infrastructure is required beyond DNS itself, which every network already has.
🏢 Microsoft Active Directory
Active Directory is arguably the single largest real-world consumer of SRV records. Domain-joined computers use SRV lookups against records like _ldap._tcp.dc._msdcs.domain.com and _kerberos._tcp.domain.com to automatically locate the nearest available domain controller, Kerberos authentication server, and Global Catalog server — all without any client-side configuration specifying which physical server to use. This is what allows a laptop to authenticate correctly whether it's on a corporate network in one city or connecting via VPN from another, entirely through DNS-driven discovery.
📞 SIP & VoIP Services
SIP (Session Initiation Protocol) phones and softphone clients use _sip._tcp, _sip._udp, and _sips._tcp (for TLS-secured SIP) SRV records to locate a domain's call-signaling server, letting a business publish a single domain for SIP addressing while the underlying VoIP infrastructure runs on whatever host, port, and redundant server configuration is actually deployed behind it.
💬 XMPP Federation
XMPP (the protocol behind many chat and federation systems) relies on _xmpp-client._tcp and _xmpp-server._tcp SRV records specifically to enable federation — letting one XMPP server on one domain discover and connect directly to another XMPP server on a completely different domain, purely through DNS, without any manual peering configuration between the two organizations.
📁 LDAP Directory Services
LDAP clients — not just Active Directory's own tooling, but any standards-compliant LDAP client — use _ldap._tcp SRV records to locate directory servers for a domain automatically, a pattern used well beyond Windows environments in many enterprise identity and directory systems built on open LDAP implementations.
🎮 Minecraft Servers
Minecraft's use of SRV records solves a genuinely practical problem: the default Minecraft port (25565) is easy to remember, but a server operator running multiple game servers, or simply wanting a friendlier connection experience, often needs a non-default port. Without SRV support, players would need to type both a hostname and a port number to connect. With a correctly configured _minecraft._tcp SRV record, players just type the domain, and the Minecraft client automatically looks up the SRV record to find the real host and port — a small but genuinely useful piece of DNS infrastructure quietly running behind a huge number of community game servers.
⚖️ Load Balancing & Failover
Multiple SRV records at the same priority, with weights reflecting relative server capacity, give SRV-aware clients built-in load distribution without needing a separate load balancer for service discovery itself. Multiple priority tiers give equally built-in failover: if every target at the lowest priority becomes unreachable, a compliant client automatically falls back to the next priority tier — a pattern conceptually identical to MX record failover, applied generically to any service type.
🏢 Enterprise & Cloud Deployments
Large organizations running internal service meshes or hybrid cloud deployments frequently use SRV records (or SRV-compatible service discovery built on the same underlying model) to let internal applications discover backend services dynamically as infrastructure scales up, scales down, or migrates between data centers and cloud regions — the DNS layer abstracts away the constantly shifting physical topology from the applications consuming those services.
📊 Comparison Tables
| Record Type | Purpose |
|---|---|
| SRV | Maps a named service to a host, port, priority and weight |
| A / AAAA | Maps a hostname to an IPv4/IPv6 address only, no port or priority |
| CNAME | Aliases one hostname to another, no service or port information |
| MX | Maps a domain to mail servers with priority, but no weight or port field |
| TXT | Free-form text, unrelated to service location |
Priority vs. Weight
| Field | Governs | Behavior |
|---|---|---|
| Priority | Order of preference between tiers | Lower always tried first, strictly |
| Weight | Distribution within the same tier | Proportional, randomized selection |
Microsoft SRV vs. Standard SRV
| Aspect | Standard SRV Usage | Active Directory SRV Usage |
|---|---|---|
| Naming convention | _service._proto.domain | Includes additional AD-specific labels like _msdcs, site names |
| Purpose | General service discovery | Domain controller, Kerberos, Global Catalog discovery |
🖥️ Automation & API Usage
| Platform | Command |
|---|---|
| Linux / macOS (dig) | dig SRV _sip._tcp.example.com +short |
| Windows (nslookup) | nslookup -type=SRV _sip._tcp.example.com |
| Windows (PowerShell) | Resolve-DnsName -Type SRV _sip._tcp.example.com |
Monitoring and orchestration systems commonly poll SRV records programmatically as a lightweight service-registry mechanism — checking which targets are currently published lets automated tooling adapt routing decisions without needing a dedicated service-discovery platform layered on top of DNS.
🔒 Security Considerations
Because SRV records directly determine where clients connect for authentication-sensitive services like Kerberos and LDAP, an attacker who could inject or spoof SRV responses could, in principle, redirect clients toward malicious infrastructure — a strong argument for DNSSEC on any zone hosting SRV records for identity or authentication-critical services. Reviewing which SRV records are currently published, and confirming every target genuinely belongs to trusted infrastructure, is a reasonable part of any periodic domain security audit.
⏱️ Performance
SRV-based service discovery adds one extra DNS lookup compared to a hardcoded host:port configuration, but this overhead is negligible in practice given DNS caching, and it's vastly outweighed by the operational flexibility gained — services can be moved, rebalanced, or failed over without touching a single client configuration.
❌ Common Mistakes
✅ Best Practices
Publish multiple targets at the lowest priority tier whenever redundancy matters, with weights genuinely proportional to each server's real capacity. Keep target hostnames resolvable with correct, current A/AAAA records — an unreachable target defeats the purpose of the SRV record entirely. Enable DNSSEC on zones publishing SRV records for authentication-sensitive services. Document your organization's SRV naming conventions clearly for anyone maintaining the zone later.
📊 Pros & Cons
| Aspect | Advantage | Limitation |
|---|---|---|
| Flexibility | Services can move without client reconfiguration | Requires SRV-aware client software to work at all |
| Load distribution | Built-in weighting without extra infrastructure | Less sophisticated than a dedicated load balancer |
| Adoption | Well-supported for VoIP, AD, LDAP, XMPP | Not universally supported by every application type (e.g. most web browsers ignore SRV for HTTP) |
🔧 Troubleshooting
🎓 Expert Tips
🔗 More Ways to Investigate DNS
For the complete record picture beyond SRV, use DNS Lookup. Check which servers are authoritative with NS Lookup, verify mail routing with MX Lookup, and check zone administration data with SOA Lookup. Confirm a target host's open ports with Open Port Checker.
ToolsNovaHub tools are built and independently maintained with a focus on accurate, no-signup network and security utilities. Spotted an error? Let us know.
📋 Related Tools & Guides Comparison
| Resource | Type | Link |
|---|---|---|
| DNS Lookup | Network | Open Tool → |
| NS Lookup | Network | Open Tool → |
| SOA Lookup | Network | Open Tool → |
| SRV Records Explained | Guide | Read Guide → |
| SIP SRV Guide | Guide | Read Guide → |
| Microsoft SRV Guide | Guide | Read Guide → |