cURL / Mailing Lists / curl-library / Single Mail

curl-library

c-ares vs. IPv6 question

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Mon, 7 Dec 2009 00:10:23 +0100

Hello,

I am observing sort of regression after switch curl to c-ares name resolver.
My /etc/hosts looks following (Fedora default):

$ grep local /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

When I try to resolve that names with c-ares enabled curl it get (::1 results
are missing):

$ curl -v localhost localhost6
* About to connect() to localhost port 80 (#0)
* Trying 127.0.0.1... Connection refused
...
* Could not resolve host: localhost6 (Domain name not found)
...

However it seems to work fine with c-ares disabled:

$ curl -v localhost localhost6
* About to connect() to localhost port 80 (#0)
* Trying ::1... Connection refused
* Trying 127.0.0.1... Connection refused
...
* About to connect() to localhost6 port 80 (#0)
* Trying ::1... Connection refused
...

Is that actually supposed to work now? I am asking because it causes test241
to fail with c-ares (after s/ip6-localhost/localhost6/)...

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-07