Every protocol eventually has to confess that it does not know where anything is. The Internet wrote that confession down in February 2000, in a single sentence of RFC 2782: “Currently, one must either know the exact address of a server to contact it, or broadcast a question.”

That sentence is the entire case for the SRV record, and it is a good case. Before it, a domain could tell you which machine answered to a name. It could not tell you which machine answered to a service. If you wanted the mail server, the directory server, the telephony gateway or the Kerberos realm, you hard-coded a hostname into the client, or you shouted into the network and waited.

RFC 2782 fixed that with a new record type — code 33 — and a naming trick you can type with one finger: an underscore. The record went on to become the plumbing under Active Directory, SIP, XMPP, Kerberos, CalDAV and Minecraft. It never got into the browser. Those two facts are the same fact, and it is the most useful thing in the whole story.

What RFC 2782 put into the DNS

The SRV record is a Standards Track DNS resource record with type code 33. Its owner name takes the form _Service._Proto.Name, and its data carries four fields: priority, weight, port and target. Read together, they turn a domain from a single address into a catalogue of servers — each one labelled with the port it listens on, the order in which it should be tried, and the share of traffic it should get.

The document's own summary of the benefit is refreshingly practical. The record lets administrators run several servers for one domain, “move services from host to host with little fuss”, and mark some hosts as primary while others stand by.

It also gives the record a way to say no. A target of “.” — a single dot — “means that the service is decidedly not available at this domain.” Not missing. Not misconfigured. Not temporarily down. Decidedly not available. There are few things in the DNS that confident.

Three names on the document, and what each one brought

RFC 2782 carries three bylines, and the combination explains almost everything that followed.

Arnt Gulbrandsen had already tried this once: RFC 2052, published in October 1996 as an experimental record, was his. Paul Vixie brought the other half of the problem — the man behind cron and the dominant BIND implementation of the DNS knew precisely what happens when a naming convention meets a parser written by somebody else. And Levon Esibov brought Microsoft, which was about to make the record load-bearing.

Active Directory finds its domain controllers through SRV lookups — _ldap._tcp.dc._msdcs.<domain> — which means that for a quarter of a century the largest deployment of RFC 2782 has been the login prompt on a corporate desktop. Nobody types it. Nobody thanks it. It is there every morning at 8:55.

The underscore: a border drawn in one character

The record's owner name starts with an underscore, and the specification explains why without pretending the reason is beautiful. An underscore “is prepended to the service identifier to avoid collisions with DNS labels that occur in nature.”

Read that twice. The DNS already had names — hostnames, the labels that “occur in nature” because a machine has to be called something. SRV needed to add a second kind of name to the same namespace without ever letting the two be confused. The underscore is the border.

It costs one character and buys permanent coexistence. _http._tcp.example.com cannot be mistaken for a host, because nobody names a machine with a leading underscore. A service lookup and a hostname lookup can therefore live in the same zone, in the same file, under the same administrator, and never argue about whose label it is.

It is the cheapest border ever drawn: no treaty, no committee, no allocation. One character that says this label belongs to a different species.

Priority is rank. Weight is luck with a bias.

Priority is the easy field. “A client MUST attempt to contact the target host with the lowest-numbered priority it can reach; target hosts with the same priority SHOULD be tried in an order defined by the weight field.” Lower numbers first, work down the list until something answers. Primary and backup, without inventing a new protocol or a new port.

Weight is the awkward one, because it asks for randomness with a preference. “Larger weights SHOULD be given a proportionately higher probability of being selected.” Proportionate is not a specification, so the RFC publishes an algorithm — sum the weights of the lowest-priority targets, draw a random number in that range, walk the list until the running total passes it — to stop every implementer from inventing a slightly different shuffle.

Priority is a ladder. Weight is a dice roll with an opinion.

The document also makes a human point most specifications skip. Administrators “SHOULD use Weight 0 when there isn't any server selection to do, to make the RR easier to read for humans (less noisy).” A standard that worries about whether a zone file is noisy is a standard written by somebody who has read one at three in the morning.

The record that runs the login prompt, the phone call and the video game

SRV became the answer wherever a domain needed to name a service rather than a machine. SIP uses it to locate registrars and proxies (RFC 3263). XMPP uses it for client and server connections (RFC 6120). Kerberos uses it to find a realm's key distribution centre (RFC 4120). CalDAV and CardDAV use it to find a calendar (RFC 6764). Mail submission and access use it to find a way out of the outbox (RFC 6186). Active Directory uses it for everything.

And then there is the deployment nobody puts on a governance slide: Minecraft. Type a domain into the server box and the Java edition quietly asks the DNS for _minecraft._tcp, gets back a port, and connects. Millions of players have used RFC 2782 without ever learning that a record type exists.

Somewhere in that list is the reason your laptop can find a domain controller, your softphone can find a registrar, and a twelve-year-old can join a friend's world by typing a name instead of an IP address and a colon.

Why the browser never asked

The web had its own answer, and it was already typed. Put the port in the URL. https://example.com:8443/ says everything SRV would say, in a syntax that predates the record and outlived every attempt to replace it.

Once a billion URLs, bookmarks, firewall rules, CDN configurations, TLS certificates and copy-pasted curl commands encode the assumption that the authority component of a URL is a hostname, the cost of switching is not the cost of the record. It is the cost of the installed base. That is lock-in, and nobody had to sign anything to get it.

There is a second reason, quieter and more technical. A record that shifts traffic between servers is a record that a proxy, a cache or a middlebox may quietly disagree with. The web put its trust in the URL, not in the resolver, and a service-discovery layer underneath the URL would have had to win an argument with every intermediary on the path.

The web did not reject SRV on the merits. It never held the meeting.

What the lifecycle actually teaches

SRV is the rare standard that lost the biggest market and won every other one. It survived a quarter of a century not because it was elegant — though it is — but because the problem it solved was real and the marker it used was unmistakable.

Two lessons, and neither of them is about DNS.

First: publication is not adoption. A record type can be perfectly specified, formally standardised and completely ignored by the only client population that would have made it famous. Being right is not a distribution strategy.

Second: when you add a new kind of name to a namespace that already has names, mark the new kind unmistakably. The alternative is a collision that cannot be resolved without breaking somebody — discovered years later, in production, by the person on call.

The underscore is still there, in every zone file that has ever pointed a client at a service instead of a machine. It has been saying the same thing since February 2000: this label is not a hostname. The DNS learned to read it. The browser never had to.