aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKim Vandry <vandry@TZoNE.ORG>2013-09-07 12:45:50 -0400
committerDaniel Stenberg <daniel@haxx.se>2013-09-12 21:11:47 +0200
commitdf69440d05f1133a9053e19a9bf576c8b13514b9 (patch)
treecfe02627be58fea1a429efa2112dfa3969a981c1 /include
parent345955e87e21769e917cf407c5c794a05c4f2612 (diff)
libcurl: New options to bind DNS to local interfaces or IP addresses
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h13
-rw-r--r--include/curl/typecheck-gcc.h4
2 files changed, 17 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 239cecbf5..4e09cf728 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1556,6 +1556,19 @@ typedef enum {
/* The XOAUTH2 bearer token */
CINIT(XOAUTH2_BEARER, OBJECTPOINT, 220),
+ /* Set the interface string to use as outgoing network
+ * interface for DNS requests.
+ * Only supported by the c-ares DNS backend */
+ CINIT(DNS_INTERFACE, OBJECTPOINT, 221),
+
+ /* Set the local IPv4 address to use for outgoing DNS requests.
+ * Only supported by the c-ares DNS backend */
+ CINIT(DNS_LOCAL_IP4, OBJECTPOINT, 222),
+
+ /* Set the local IPv4 address to use for outgoing DNS requests.
+ * Only supported by the c-ares DNS backend */
+ CINIT(DNS_LOCAL_IP6, OBJECTPOINT, 223),
+
CURLOPT_LASTENTRY /* the last unused */
} CURLoption;
diff --git a/include/curl/typecheck-gcc.h b/include/curl/typecheck-gcc.h
index a9fee0c84..e8f1dff9a 100644
--- a/include/curl/typecheck-gcc.h
+++ b/include/curl/typecheck-gcc.h
@@ -265,6 +265,10 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_slist,
(option) == CURLOPT_RTSP_STREAM_URI || \
(option) == CURLOPT_RTSP_TRANSPORT || \
(option) == CURLOPT_XOAUTH2_BEARER || \
+ (option) == CURLOPT_DNS_SERVERS || \
+ (option) == CURLOPT_DNS_INTERFACE || \
+ (option) == CURLOPT_DNS_LOCAL_IP4 || \
+ (option) == CURLOPT_DNS_LOCAL_IP6 || \
0)
/* evaluates to true if option takes a curl_write_callback argument */