get the hostname of the machine for internal json