cURL / Mailing Lists / curl-library / Single Mail


Re: cant resolve host on visual studio 2013

From: Gisle Vanem <>
Date: Tue, 03 Mar 2015 18:20:36 +0100

Azat Manukyan wrote:

> in both cases I haven't configured libcurl to any resolver.I supposed that didn't need to configure any
> resolver.firewall is turned of on windows.
> DNS resolver is working on windows environment because i can ping to
> given host, and system log viewer does not give any issues.

Does "ping -6" work too?

Since you're using Visual Studio 2013, you must be using
Vista or Win-8? So if you have IPv6 enabled (default on Win-8),
maybe libcurl, cares etc. is trying to get the IPv6 address and
fails somehow. Try adding:
    curl_easy_setopt (curl,CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);

if you don't care about IPv6. Does an dotted IPv4-address
in your URL work?.

List admin:
Received on 2015-03-03