use short hostname for api service