check_curl: use CURLOPT_RESOLVE to fix connecting to the right ip