From df69440d05f1133a9053e19a9bf576c8b13514b9 Mon Sep 17 00:00:00 2001 From: Kim Vandry Date: Sat, 7 Sep 2013 12:45:50 -0400 Subject: libcurl: New options to bind DNS to local interfaces or IP addresses --- docs/libcurl/curl_easy_setopt.3 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'docs/libcurl/curl_easy_setopt.3') diff --git a/docs/libcurl/curl_easy_setopt.3 b/docs/libcurl/curl_easy_setopt.3 index f4084823d..b370855f9 100644 --- a/docs/libcurl/curl_easy_setopt.3 +++ b/docs/libcurl/curl_easy_setopt.3 @@ -2298,6 +2298,36 @@ This option requires that libcurl was built with a resolver backend that supports this operation. The c-ares backend is the only such one. (Added in 7.24.0) +.IP CURLOPT_DNS_INTERFACE +Pass a char * as parameter. Set the name of the network interface that +the DNS resolver should bind to. This must be an interface name (not an +address). Set this option to NULL to use the default setting (don't +bind to a specific interface). + +This option requires that libcurl was built with a resolver backend that +supports this operation. The c-ares backend is the only such one. + +(Added in 7.33.0) +.IP CURLOPT_DNS_LOCAL_IP4 +Set the local IPv4 address that the resolver should bind to. The argument +should be of type char * and contain a single IPv4 address as a string. +Set this option to NULL to use the default setting (don't +bind to a specific IP address). + +This option requires that libcurl was built with a resolver backend that +supports this operation. The c-ares backend is the only such one. + +(Added in 7.33.0) +.IP CURLOPT_DNS_LOCAL_IP6 +Set the local IPv6 address that the resolver should bind to. The argument +should be of type char * and contain a single IPv6 address as a string. +Set this option to NULL to use the default setting (don't +bind to a specific IP address). + +This option requires that libcurl was built with a resolver backend that +supports this operation. The c-ares backend is the only such one. + +(Added in 7.33.0) .IP CURLOPT_ACCEPTTIMEOUT_MS Pass a long telling libcurl the maximum number of milliseconds to wait for a server to connect back to libcurl when an active FTP connection is used. If no -- cgit v1.2.3