cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3412787 ] libcurl.so.4 failes to resolve hostname to IPv6 using DNS

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 22 Sep 2011 08:52:23 +0200

Bugs item #3412787, was opened at 2011-09-22 08:36
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3412787&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: name resolving/DNS
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Akanksha Shukla (akshukla)
Assigned to: Daniel Stenberg (bagder)
Summary: libcurl.so.4 failes to resolve hostname to IPv6 using DNS

Initial Comment:
Problem Description:

We have an application program running on Linux machine. We have one DNS machine which has IPv6 address and in our Linux machine (in /etc/resolv.conf), we have specified the IPv6 address of DNS machine. When we try to make a request from our application (basically GET,POST etc), which uses libcurl api, then the request gets failed. While debugging we found that the libcurl api was failing while executing curl_easy_perform(). On setting the libcurl api in verbose mode we found that the libcurl api couldn't resolve the IPv6 address from the hostname. It gives following error:

* Resolving host timed out: <host-name>
* Closing connection #0
* Couldn't resolve host name

We also found that our libcurl DNS requests were not reaching to the DNS machine. At the time of issue the application was linked to the libcurl.so.4.

When we linked our application to libcurl.so.3, then everthing works fine.

So it seems to us that there is problem with libcurl's new version.

This issue comes only when we specify the IPv6 address of DNS in /etc/resolv.conf file of Unity Server. If we specify the IPv4 address of DNS machine in /etc/resolv.conf file, then everything works fine with libcurl.so.4 version as well.

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2011-09-22 08:52

Message:
What's the exact libcurl version you're using? (libcurl.so.4 is just the
ABI name which has been the same for many years)

What resolver backend in libcurl are you using? (stock, c-ares or
threaded)

I assume other services work fine with this DNS server?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3412787&group_id=976
Received on 2011-09-22

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET