Added getHostInfoByNameOrAddr and MISC changes