Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
CURLOPT_DNS_SHUFFLE_ADDRESSES(3) | Library Functions Manual | CURLOPT_DNS_SHUFFLE_ADDRESSES(3) |
NAME
CURLOPT_DNS_SHUFFLE_ADDRESSES - shuffle IP addresses for hostnameSYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DNS_SHUFFLE_ADDRESSES, long onoff);
DESCRIPTION
Pass a long set to 1 to enable this option.DEFAULT
0 (disabled)PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
curl_easy_setopt(curl, CURLOPT_DNS_SHUFFLE_ADDRESSES, 1L);
curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
}
AVAILABILITY
Added in curl 7.60.0RETURN VALUE
CURLE_OK or an error such as CURLE_UNKNOWN_OPTION.SEE ALSO
CURLOPT_DNS_CACHE_TIMEOUT(3), CURLOPT_IPRESOLVE(3)2024-11-23 | libcurl |