Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.SetOptionDNSInterface
Set the name of the network interface that the DNS resolver should bind to.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.SetOptionDNSInterface"; curl; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Value | The new interface name. | "en0" |
Result
Returns OK or error.
Description
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 "" to use the default setting (don't bind to a specific interface).
See also DNS_INTERFACE option in CURL manual.
See also
Created 8th July 2015, last changed 9th July 2015