set hostname instead of ip on add instance