SRV (Service) is a DNS record that specifies hostname and port for a service. Used by XMPP, SIP, Minecraft, Kerberos, LDAP. Format: _service._proto.name TTL IN SRV priority weight port target. Example: _sip._tls.example.com. 3600 IN SRV 10 60 5061 sipserver.example.com.
Free online tool — DNS lookup tool: instant results, no signup.
SRV (Service) is a DNS record that specifies hostname and port for a service. Used by XMPP, SIP, Minecraft, Kerberos, LDAP. Format: _service._proto.name TTL IN SRV priority weight port target. Example: _sip._tls.example.com. 3600 IN SRV 10 60 5061 sipserver.example.com.
An SRV (Service) DNS record is essential for directing traffic to specific services running on a domain. Its structure is defined by several components, each serving a distinct purpose. The format is as follows:
_service._proto.name TTL IN SRV priority weight port targetHere's a breakdown of each component:
_sip for SIP services or _xmpp for XMPP._tcp or _udp.example.com).5061).Understanding this structure is critical for configuring services that rely on DNS SRV records, ensuring that your applications can locate and connect to the appropriate servers.
Checking SRV records can be accomplished using various command line tools, such as dig and nslookup. Below are examples of how to utilize these tools to verify SRV records for a specific service:
The dig command provides detailed information about DNS records. To check an SRV record, use the following syntax:
dig _service._proto.name SRVFor example, to check the SRV record for a SIP service on example.com, you would run:
dig _sip._tcp.example.com SRVThis command will return the SRV record details, including priority, weight, port, and target hostname.
The nslookup command can also be used to query SRV records. The syntax is slightly different:
nslookup -type=SRV _service._proto.nameFor instance, to check the same SIP service, you would execute:
nslookup -type=SRV _sip._tcp.example.comBoth commands will provide you with the necessary information to confirm the existence and correctness of your SRV records, helping diagnose any potential connectivity issues.
SRV records are utilized across various applications and services to facilitate efficient service discovery. Here are some common use cases:
In each of these cases, SRV records streamline the connection process, allowing clients to locate services dynamically without hardcoding server details. This flexibility is particularly beneficial in environments where services may change frequently.
DNS (Domain Name System) translates domain names into IP addresses. DNS records are instructions that define where to route traffic, email, and how to verify domainownership.
Query all record types — A, AAAA, MX, NS, TXT, CNAME, SOA — in a single request.
Direct queries to authoritative servers. Results in milliseconds, no caching.
SPF, DKIM, and DMARC analysis to evaluate email protection against spoofing and phishing.
Save check results. Compare DNS records before and after registrar changes.
DNS check after deploy
SPF/DKIM/DMARC audit
DNS config audit
DNS zone control
v=spf1 TXT record.DNS check history, API keys and DNS change monitoring.
Sign up freeSee the use-case section above. For a quick check, use our online form.
Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.