4 ms·
What we should really do / have done is add port numbers to DNS entries. Then IANA wouldn’t need a public registry of port assignments. Everyone can use whateve
by josephg 5y ago
What we should really do / have done is add port numbers to DNS entries. Then IANA wouldn’t need a public registry of port assignments. Everyone can use whatever ports for our public services that we like.
Sadly, its almost certainly too late to add port numbers to DNS.
- detaro 5y agothat's exactly what SRV records do. Used for many things, but not HTTP(S)
- kroltan 5y agoActually, DNS SRV entries do support port numbers (and transport layer!) https://en.wikipedia.org/wiki/SRV_record https://en.wikipedia.org/wiki/SRV_record It is just a matter of specifying the use of such entries in the protocols (HTTP et al). A lot of new protocols already rely on them. As someone who doesn't do much infra, I've encountered them when setting up the DNS for a Minecraft server. The game checks for the SRV record, or if it is missing, assumes (or reads from the user) a given port.