parse ip and resolve ip