cURL / Mailing Lists / curl-library / Single Mail


multihomed connections

From: Gisle Vanem <>
Date: Tue, 8 Jun 2004 16:26:27 +0200

How is curl/libcurl supposed to connect to a host with multiple
IPv4 addresses? I image it would try each address in succession.

E.g this host:
id: 38831
flags: qr rd ra
opcode: QUERY
rcode: NOERROR
Questions: A
Answers: 84321 A 84321 A 84321 A 84321 A 84321 A 84321 A 84321 A

This may be a C-ares/adig quirk; the order shown above is not the order
received in the DNS response. But curl tries the address first.
This doesn't work since my subnet is 10.x and the host is in Holland!

But curl gives up on the first failure. Shouldn't it try the 82.x and 217.x
addresses too?

I also tried
curl -v

which also failed on the 1st URL as if '-f' had been used.

All this was with C-ares and no IPv6.

Received on 2004-06-08