Add multi ip resolve function