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 ++++++++++++++++++++++++++++++ docs/libcurl/symbols-in-versions | 3 +++ 2 files changed, 33 insertions(+) (limited to 'docs/libcurl') 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 diff --git a/docs/libcurl/symbols-in-versions b/docs/libcurl/symbols-in-versions index 3e20cd657..7c362cde7 100644 --- a/docs/libcurl/symbols-in-versions +++ b/docs/libcurl/symbols-in-versions @@ -332,6 +332,9 @@ CURLOPT_DEBUGDATA 7.9.6 CURLOPT_DEBUGFUNCTION 7.9.6 CURLOPT_DIRLISTONLY 7.17.0 CURLOPT_DNS_CACHE_TIMEOUT 7.9.3 +CURLOPT_DNS_INTERFACE 7.33.0 +CURLOPT_DNS_LOCAL_IP4 7.33.0 +CURLOPT_DNS_LOCAL_IP6 7.33.0 CURLOPT_DNS_SERVERS 7.24.0 CURLOPT_DNS_USE_GLOBAL_CACHE 7.9.3 7.11.1 CURLOPT_EGDSOCKET 7.7 -- cgit v1.2.3