curl-library
Re: Make DNS requests follow the CURLOPT_INTERFACE if c-ares is in use
Date: Mon, 08 Apr 2013 01:18:36 +0200
"Vandry" <vandry_at_TZoNE.ORG> wrote:
> If c-ares is in use, this is actually easy to implement because c-ares
> already has a hook for it. I propose a small change that would make DNS
> requests also follow the CURLOPT_INTERFACE binding if c-ares is in use.
> If c-ares is not in use or if the c-ares version is too old to support
> this, the behaviour would be the same as it is now. I could have made it
> fail with CURLE_NOT_BUILT_IN but I don't think that's a good idea.
And also for Windows since 'ares_set_local_dev()' boils down to
'setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE)' which Winsock
doesn't support. There should be another neater way to at least
send DNS-requests to a specific interface on Windows.
--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-08