set hostname for rest api