by mjn · 9y ago · 0 comments
> The number should preferably be in the range 1-255 so that it can be used in the WKS field in name servers.
Well-known service (WKS) records let hosts advertise in DNS which services a given machine made available, by listing which of the assigned port numbers were open for TCP or UDP connections. This never really caught on, as few people used them, even fewer kept them up to date, and checking WKS provided very little real benefit over just attempting a connection.
They had been deprecated already in 1989 through RFC 1123 [1], but it seems that by the mid-1990s at least some people still considered them relevant.
[1] "An application SHOULD NOT rely on the ability to locate a WKS record containing an accurate listing of all services at a particular host address, since the WKS RR type is not often used by Internet sites. To confirm that a service is present, simply attempt to use it." https://www.ietf.org/rfc/rfc1123.txt
Wikipedia[0] has the example of a SIP telephony server, `example.com` sets a SRV record that redirects interested clients to `sipserver.example.com`.
SRV records are more like an MX record generalized to arbitrary services, allowing a domain to point to the hosts that provides various services for that domain.