Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow --resolve <host:*:address> #1264
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.,
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