Change and retrieve the current hostname.