Using hostname instead of ip