this function was just a front-end for gethostname(). it was needed when we supported windows, which has a different function for looking up the hostname; it's not needed any longer. (cherry picked from commit 197334464e)
197334464e