Skip to content

SRV lookup

Enter a service name, such as _sip._tcp.example.com, to see which host and port provide it.

Example: SRV records of _xmpp-server._tcp.jabber.org

What is an SRV record?

An SRV record tells clients which host and port provide a service for a domain. Its name has the form _service._protocol.domain.

It is used by SIP and XMPP, Microsoft 365, Minecraft servers and many others, so that users type only the domain and the client finds the right server.

How to read an SRV record

In a zone file, the record looks like this:

_sip._tcp.example.com.   3600   IN   SRV   10 60 5060 sip.example.com.
  • Priority: lower is tried first.
  • Weight: shares load between records of equal priority.
  • Port the service listens on.
  • Target host name.

From the command line

Look up SRV records without this site.

On macOS and Linux, use dig:

dig _sip._tcp.example.com SRV +short

On Windows, use nslookup:

nslookup -type=SRV _sip._tcp.example.com

To skip caches, ask one of the domain’s nameservers directly: dig @ns1.example.net _sip._tcp.example.com SRV. The “Its own nameservers” option on the result page does the same.

Questions and answers

My SRV lookup returns nothing. Why?

SRV records sit at the full service name, not at the domain. Include the service and protocol labels, for example _minecraft._tcp.example.com.

Other record types