Foxcolab

Glossary

SRV record

Definition

SRV record: A DNS resource record (RFC 2782) that names the host and port providing a specific service for a domain, written as _service._proto.name with a priority, a weight, a port and a target host.

Also known asservice recordDNS SRV recordSRV resource record

In short

An SRV (service) record is a DNS record, defined in RFC 2782, that tells software which host and port provide a named service for a domain. It's written as _service._proto.name with a priority, weight, port and target. Lower priorities are tried first, and weights share load between equals. Only protocols whose specifications call for SRV use it, such as email client setup in RFC 6186.

Key takeaways

  • An SRV record maps a service on a domain to a host name and a port.
  • Clients try the lowest priority first and use weight to share load between equal priorities.
  • The target must be a host name with address records, never an alias; a target of "." means the service isn't offered.
  • Software uses SRV only when its protocol's specification defines a label for it.
  • Without DNSSEC, mail apps should check that an SRV target belongs to the domain they asked about.

Last reviewed 5 December 2026 by Foxcolab Team

An SRV record, or service record, is a DNS record that tells software which host and port offer a particular service for a domain. It's defined in RFC 2782. An MX record says only where a domain's mail is delivered. An SRV record can point any protocol designed to use it at a host, a port and a fallback order.

The format#

Text
_service._proto.name.  TTL  IN  SRV  priority  weight  port  target

RFC 6186 uses SRV so mail apps can find their servers from an email address alone:

example.com zone·Text
_submission._tcp.example.com.  3600  IN  SRV  0 1 587 mail.example.com.
_imaps._tcp.example.com.       3600  IN  SRV  0 1 993 imap.example.com.
FieldMeaning
priorityLower is tried first. A client "MUST attempt to contact the target host with the lowest-numbered priority it can reach."
weightShares load among records with the same priority; a larger weight gets a bigger share
portThe port on the target host
targetA host name with address records, never an alias. . means the service isn't offered here.

Type name@example.com into a mail app that supports RFC 6186, and it can look up _imaps._tcp.example.com and _submission._tcp.example.com and fill in the servers itself.

Who reads SRV records#

Only software whose protocol says so. RFC 2782 says SRV records "SHOULD NOT be used in the absence of" a specification that defines the service label. Publishing a record for a protocol that doesn't use SRV changes nothing.

Common mistakes#

  • A CNAME as the target. The target must have its own address records.
  • The domain twice. Some DNS providers append your domain, so _imaps._tcp.example.com typed in full becomes _imaps._tcp.example.com.example.com.
  • Trusting any target. A forged answer could send a mail app, and your password, to someone else's server. Without DNSSEC, RFC 6186 says mail apps "SHOULD check that the target FQDN returned in the SRV record matches the original service domain that was queried," and ask you otherwise.

In Foxcolab#

Foxcolab doesn't ask for SRV records. The Domains tab in your account console lists TXT and MX records only. To add Foxcolab Mail to another mail app, open Settings → Other mail apps, copy the incoming and outgoing server details, and create an app password under App passwords. An app password signs that app in without handing it your account password. Follow Create an app password or set up Foxcolab Mail on your phone. Custom domains come with the Pro plan and above: see plans.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to