Change the way the hostname is fetched.