Only consider the first part of the hostname when setting the endpoint