we want to keep user input as much as possible and getHostName() could return something different than the user provided value
This code was extracted a while ago from EE to be re-used in DC. This code is also used in EE.
If some places REALLY need at one point to use a resolved address, I think this is up to these places to ask for the address to be resolved.
Because:
This code was extracted a while ago from EE to be re-used in DC. This code is also used in EE. If some places REALLY need at one point to use a resolved address, I think this is up to these places to ask for the address to be resolved.