refine resolve_iplist