SRV record
SRVAn SRV record publishes where a particular service runs — including its port, which no other record type carries.
What an SRV record carries
An SRV record, defined in RFC 2782, names the host and port for a specific service. It is the only common record type that includes a port number, which is why protocols that do not use a fixed port rely on it.
The record name encodes the service and protocol as underscore-prefixed labels: _sip._tcp.example.com. The underscores prevent collisions with real hostnames.
Priority and weight
Each record carries a priority and a weight. Priority works like MX: lower numbers are tried first. Weight distributes traffic among records that share a priority, in proportion to the weight values.
A client is expected to honour both. This gives finer control than MX records, which have priority but no weight.
Where you will meet it
SRV records are used by SIP, XMPP, Minecraft servers, Microsoft Active Directory and various autoconfiguration mechanisms.
Email does not use SRV for delivery — that is what MX is for. Some mail clients do use SRV records to discover submission and IMAP settings automatically, which is a different job.
