CURL.SetOptionDNSLocalIPv6
--------------------------

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

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [5.2](newinversion52.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionDNSLocalIPv6"; curl; IP ) 

**MBS**( **"CURL.SetOptionDNSLocalIPv6";** /\* Set the local IPv6 address that the resolver should bind to. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$IP**) /\* The new IP to use.e.g. "" \*/ 

### 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 IPv6 address that the resolver should bind to.   
The argument should be a text and contain a single IPv6 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\_IP6](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP6.html) option in CURL manual.

### See also

- [CURL.SetOptionDNSLocalIPv4](CURLSetOptionDNSLocalIPv4.md)

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

  
[CURL.SetOptionDNSLocalIPv4](CURLSetOptionDNSLocalIPv4.md) - [CURL.SetOptionDNSServers](CURLSetOptionDNSServers.md)

[HTML Version](CURLSetOptionDNSLocalIPv6.shtml)