change endpoint hostname