Skip to content

What Is an SRV Record and Which Systems Use It?

An SRV record names the server and port that offer a particular service for your domain. Here is what its fields mean, who uses it, and how to set it up carefully.

10 min readUpdated Nov 19, 2026By XPASS Editorial Team

What Is an SRV Record and Which Systems Use It?

When you type a web address into a browser, the browser already knows what to do: look up the name, connect to the standard port for HTTPS, and ask for the page. Many other kinds of software are not so lucky. A chat client, a calling system or a directory tool is given only a domain name such as example.com. It needs to learn which server actually runs the service, and on which port. An SRV record answers exactly that question.

This article explains what an SRV record is, how to read its fields, which systems rely on it, and how to publish one without breaking anything. It is written for site owners and administrators, so each field is explained in plain terms and every step can be done in a DNS control panel.

What an SRV record is

SRV stands for service record. It is a DNS record type that names a particular service, the protocol it travels over, and where to find it. Where an A record says "this name lives at this IP address", and an MX record says "mail for this domain goes to these hosts", an SRV record says "the service called X, over protocol Y, for this domain is run by this host on this port".

DNS in general is described in RFC 1034 and RFC 1035. SRV is a later extension that uses the same machinery, with its own format. If you want a plain overview of how name lookups work before going further, Cloudflare's explanation of DNS is a gentle read.

The big advantage of SRV is flexibility. Without it, a client has to guess a port or be told one by a person. With it, the domain owner publishes the answer once, and any client that understands SRV finds the right server automatically. You can move a service to another machine, or to another port, by changing one record.

Two things keep expectations realistic.

  • SRV is only used by software that looks for it. A client must be written to query SRV records. If it does not, it ignores them. Always check the documentation of the product you are configuring.
  • SRV does not replace address records. It names a host, and that host still needs an A or AAAA record. The relationship is similar to the one between MX records and the address records they point at; the guide to TXT records and domain verification shows how several record types live side by side in one zone.

The name and the fields

An SRV record has an unusual owner name and four fields in its value. A full example looks like this:

_sip._tcp.example.com. 3600 IN SRV 10 60 5060 sipserver.example.com.

The owner name has the form _service._proto.name.

  • _sip is the service label, always starting with an underscore.
  • _tcp is the protocol label, usually _tcp or _udp.
  • example.com is the domain the service belongs to.

The underscores keep these labels from colliding with ordinary hostnames.

The four fields are:

Field Meaning Example
Priority Lower numbers are tried first 10
Weight Share of traffic among equal priorities 60
Port The TCP or UDP port of the service 5060
Target Hostname of the machine running the service sipserver.example.com.

The TTL, here 3600 seconds, tells resolvers how long they may cache the answer. If you are unsure how to choose it, see the article on recommended TTL values.

How priority and weight work together

Clients first group records by priority and pick the lowest-numbered group. Inside that group they choose among the records using weights: a record with weight 60 should receive roughly three times as many connections as one with weight 20. If every host in the first group is unreachable, the client falls to the next priority.

Typical patterns:

  • Primary and backup: priority 10 for the main server, priority 20 for the backup, both with weight 0 or 1.
  • Load sharing: two servers with the same priority and weights such as 50 and 50.
  • Unequal machines: weights 70 and 30 if one server can take more load.

A weight of 0 on every record in a group is allowed and simply means that no special preference applies.

The special "no service" target

If a target is a single dot, it means the named service is deliberately not available at this domain. This lets you say clearly that, for instance, a service does not exist rather than leaving clients to guess. Use it only when your software documents that behaviour.

Which systems use SRV records

SRV is not as widely seen by the average website owner as A or MX records, but it appears in many places.

  • Voice and video calling, and messaging. Protocols for internet telephony and instant messaging commonly define SRV lookups so that a client can find a server from just a domain name.
  • Directory and login services. Corporate networks use SRV records to let computers find directory and authentication servers.
  • Collaboration platforms. Some hosted office and chat suites ask you to add SRV records during domain setup, so that desktop and mobile apps can find their servers.
  • Calendar and contact sync. Clients for shared calendars and address books can discover the correct server from an SRV record.
  • Games and community servers. Some game software looks up an SRV record so that players can type a domain name instead of an IP address and port.

The common thread is that someone else tells you exactly what to publish. In most cases you do not design an SRV record yourself: your service provider gives you the name, priority, weight, port and target to copy. Your job is to enter them correctly.

If you want to see how records are managed on your own domain name, the domains page is a good place to start.

Setting one up step by step

  1. Get the exact values from the service provider. Ask for the service label, protocol, priority, weight, port and target. Copy them exactly.
  2. Make sure the target host exists. The hostname must have its own A or AAAA record. If it does not, create it first.
  3. Open the DNS settings for the domain at whoever hosts your DNS, which is determined by the name servers set for the domain.
  4. Add a record of type SRV. Panels differ. Some ask for service, protocol, priority, weight, port and target in separate fields. Others ask for a name like _sip._tcp and a combined value of 10 60 5060 sipserver.example.com..
  5. Check the trailing dot. Some panels require a final dot on the target hostname to mark it as complete; others add it. If a panel treats the name as relative, you may end up with the domain name repeated twice.
  6. Choose a sensible TTL. A moderate value is typical, with a shorter value while you are testing.
  7. Test with the client. Configure the real application with just the domain name and confirm that it finds the server. A DNS lookup tool that can query the SRV type is also useful for checking what is published.

A worked example

A small company runs its own voice-calling system on a server called pbx.corp.example. Staff use softphone apps that are told only the company domain, corp.example.

The administrator reads the app documentation, which says it looks up _sip._tcp.corp.example and _sip._udp.corp.example. For each, the administrator creates an SRV record with priority 10, weight 50, port 5060 and target pbx.corp.example., and makes sure pbx.corp.example has an A record.

A month later the company installs a second server, pbx2.corp.example, as a spare. The administrator adds a record with priority 20 for it. If the first server goes down, clients move to the second one. Nobody has to change any app settings.

Later, the main server is moved to a different port. Only the port field of the SRV record changes; the apps keep working because they ask DNS each time.

Common mistakes

Most SRV problems come from small details rather than from the idea itself, and nearly all of them are visible once you look closely at what was typed.

  • Wrong underscores or labels. sip._tcp and _sip._tcp are different names. The service and protocol labels must exactly match what the software queries.
  • Pointing the target at a CNAME or an IP address. The target must be a hostname that resolves directly to address records.
  • Forgetting the address record. An SRV that names a host with no A or AAAA record leads nowhere.
  • Mixing up port and priority. The order of the fields is priority, weight, port, target. Swapping them gives odd results that are hard to diagnose.
  • Expecting browsers to use SRV. Adding an SRV record for a web port does not change how a normal browser reaches your site.
  • Editing the wrong DNS zone. If the name servers for the domain are elsewhere, your change will have no effect.
  • Leaving old records behind. Obsolete SRV records can send clients to a server that no longer exists.

Limits and what to watch for

Client support varies. Only software that implements SRV lookups will use the record. For software that does, behaviour with priority and weight can differ slightly from one implementation to another, so test the real client.

Caching delays changes. Clients and resolvers keep answers until the TTL expires. Plan changes with this in mind. The same logic applies to every record type, and the article on record lifetimes and caching, linked above, is a good companion.

Security still needs its own measures. An SRV record only says where a service is. It does not protect the service. Use encryption and authentication as the service itself recommends. If your service uses certificates, remember that the CA that issues them may be restricted by a CAA record.

Names are visible. DNS records are public. Anyone can look up your SRV records and learn the hostnames and ports of services you advertise. Do not publish internal names you want to keep private.

Document the change. Record who changed what and why, so that future administrators do not delete a record they do not recognise.

A short checklist

  • I have the exact service, protocol, priority, weight, port and target from the provider.
  • The target host has an A or AAAA record of its own.
  • The owner name starts with underscores in the right places.
  • The target is not a CNAME and not an IP address.
  • I edited the DNS zone that is actually in use.
  • I tested with the real application, using only the domain name.
  • I wrote down what I published.

Summary

An SRV record tells software which host and port provide a named service for your domain, with a priority for fallback and a weight for sharing load. Its owner name follows the _service._proto.name pattern, its target must be a real hostname with address records, and it only helps clients that are written to look it up. Take the values from your service provider, check the details, test with the actual application, and keep notes. Handled this way, it is a small piece of DNS that makes services easy to find without changing any client settings.

When you want to manage records like this on your own domain, you can look at the domains page.

Frequently asked questions

What does an SRV record do?

An SRV record tells client software which host and which port provide a named service for a domain, together with a priority and a weight. It lets one domain point different services at different servers and ports without anyone typing those details.

Do web browsers use SRV records?

No. Ordinary web browsing relies on A, AAAA and CNAME records and the default ports for HTTP and HTTPS. SRV records are used by other kinds of software, such as chat, calling, directory and some game or collaboration clients, if those clients are written to look them up.

What do priority and weight mean in an SRV record?

Priority works like MX priority: the lowest number is tried first and higher numbers are fallbacks. Weight is used between records that share the same priority, so that a higher weight receives a proportionally larger share of connections.

Can an SRV record point to a CNAME or an IP address?

No. The target must be a hostname that resolves directly to A or AAAA records. A CNAME or a raw IP address as the target is not allowed and tends to cause failures in clients.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Ready to register your domain?

Search a name, compare extensions and pay once for the years you choose.

.com registration from $18.81 for the first year

Search domains

Keep reading

Domain & DNS Guides

What Is a CAA Record and How Does It Control SSL Issuance?

A CAA record lets you name the certificate authorities allowed to issue SSL certificates for your domain. Here is how it works and how to avoid locking yourself out.

10 min read

Domain & DNS Guides

What Is DNS TTL and What Value Should You Set?

TTL decides how long resolvers may keep a DNS answer. Here is how to choose a sensible value, when to lower it, and why changes do not always appear at once.

10 min read

Domain & DNS Guides

What Is a TXT Record and Why Is It Used to Verify a Domain?

A TXT record stores a short piece of text in your DNS zone. Here is how it proves domain ownership, what else it carries, and how to manage it safely.

10 min read