Man page has
Real /etc/hosts doesn't require a separate entry for each port number!
I.e., 65536 entries if one wants to cover all 65536 ports!
So please allow e.g.,
The text was updated successfully, but these errors were encountered:
Which is why it says it is a sort of alternative.
The other main reason is that the internal DNS cache already uses host name + port number in the lookup so doing it independent of port number needs more work. I'm not against the idea, I just think it is a fairly niche use case so I will probably not work on this myself.
I don't think it has a security impact, as it only changes what IP to use for a given name + port provided in the URL. That can already be changed by changing