Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CURL.SetOptionDNSLocalIPv4

Set the local IPv4 address that the resolver should bind to.

Component Version macOS Windows Linux Server iOS SDK
CURL 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionDNSLocalIPv4"; curl; IP )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
IP The new IP to use. ""

Result

Returns OK or error.

Description

Set the local IPv4 address that the resolver should bind to.
The argument should be of string and contain a single numerical IPv4 address as a string.
Set this option to "" to use the default setting (don't bind to a specific IP address).

See also DNS_LOCAL_IP4 option in CURL manual.

See also

Created 8th July 2015, last changed 9th July 2015


CURL.SetOptionDNSInterface - CURL.SetOptionDNSLocalIPv6