[PTFM-6706] UA now uses gethostbyname to round robin ip addresses

Not yet tested on windows, and older systems.
There is a potential problem with static linking and using gethostbyname()