cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Make DNS requests follow the CURLOPT_INTERFACE if c-ares is in use

From: Ben Greear <greearb_at_candelatech.com>
Date: Mon, 08 Apr 2013 13:38:27 -0700

On 04/08/2013 01:11 PM, Kim Vandry wrote:
> On 2013-04-08 01:58, Dan Fandrich wrote:
>> I'm not so sure defaulting to this is the desired behaviour. After all, the
>> default behaviour for the last 10 years has been the opposite, and I don't
>> recall anyone complaining until now. Changing the default would also break
>> backward compatibility in a big way. For example, what happens on all those
>> systems running a local caching nameserver on 127.0.0.1?
>
> I couldn't think of any good reason why you would want to bind curl requests to one interface and yet let DNS requests associated with the request use the
> routing table per system default but the local caching nameserver on 127.0.0.1 is a convincing example. Thanks for that.
>
> So I agree that Ben's patches as they stand do the right thing: introduce a new option for binding c-ares, with no backward compatibility concerns.

I'm just now doing some more testing on my trees, and I'm getting trouble just resolving names
with no special configuration. I'm going to fix this one way or another and will
post some patches for review when I get them in order....

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-08