3 ms·
If DNS returned IP:port for hostname, that would sort it too. www.foo.com --> sharedserver:8000, www.bar.com --> sharedserver:8001 and so on.
by gaius 9y ago
If DNS returned IP:port for hostname, that would sort it too.
www.foo.com --> sharedserver:8000, www.bar.com --> sharedserver:8001 and so on.
- aaronmdjones 9y agoIt can, with SRV records, which is what things like ActiveDirectory and XMPP use to discover the correct server and port for a given name. Its use for HTTP (and most other L7 protocols in general) just never really caught on.
- gaius 9y agoI believe Consul can do this and it's a pretty nice capability but the effort of retrofitting it onto things that just assume well known ports would be phenomenal. I mean even if you know you want http the "right" thing to do is look up the port number in /etc/services but who ever does that? We all just hardcode 80. So that's another potential technique that we can't use...