Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlopt_dns_local_ip4(3) [mojave man page]

CURLOPT_DNS_LOCAL_IP4(3)				     curl_easy_setopt options					  CURLOPT_DNS_LOCAL_IP4(3)

NAME
CURLOPT_DNS_LOCAL_IP4 - IPv4 address to bind DNS resolves to SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DNS_LOCAL_IP4, char *address); DESCRIPTION
Set the local IPv4 address that the resolver should bind to. The argument should be of type char * and contain a single numerical IPv4 address as a string. Set this option to NULL to use the default setting (don't bind to a specific IP address). The application does not have to keep the string around after setting this option. DEFAULT
NULL PROTOCOLS
All EXAMPLE
TODO AVAILABILITY
This option requires that libcurl was built with a resolver backend that supports this operation. The c-ares backend is the only such one. Added in 7.33.0 RETURN VALUE
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, CURLE_NOT_BUILT_IN if support was disabled at compile-time, or CURLE_BAD_FUNCTION_ARGUMENT when given a bad address. SEE ALSO
CURLOPT_DNS_INTERFACE(3), CURLOPT_DNS_LOCAL_IP4(3), libcurl 7.54.0 December 21, 2016 CURLOPT_DNS_LOCAL_IP4(3)

Check Out this Related Man Page

CURLOPT_FTP_SKIP_PASV_IP(3)				     curl_easy_setopt options				       CURLOPT_FTP_SKIP_PASV_IP(3)

NAME
CURLOPT_FTP_SKIP_PASV_IP - ignore the IP address in the PASV response SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTP_SKIP_PASV_IP, long skip); DESCRIPTION
Pass a long. If skip is set to 1, it instructs libcurl to not use the IP address the server suggests in its 227-response to libcurl's PASV command when libcurl connects the data connection. Instead libcurl will re-use the same IP address it already uses for the control connec- tion. But it will use the port number from the 227-response. This option thus allows libcurl to work around broken server installations that due to NATs, firewalls or incompetence report the wrong IP address back. This option has no effect if PORT, EPRT or EPSV is used instead of PASV. DEFAULT
0 PROTOCOLS
FTP EXAMPLE
TODO AVAILABILITY
Added in 7.14.2 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_FTPPORT(3), CURLOPT_FTP_USE_EPRT(3), libcurl 7.54.0 February 03, 2016 CURLOPT_FTP_SKIP_PASV_IP(3)
Man Page

6 More Discussions You Might Find Interesting

1. IP Networking

DNS monitoring, how to

I installed bind on my system. I started it, but I can't monitoring it. I don't see bind work or down. How I can see it work. (0 Replies)
Discussion started by: littleghost
0 Replies

2. Programming

IPv4 LSRR Option

Hello Friends, I have one doubt regarding LSRR (Loose Source and Record Route) IP option. Whether IPv4 optoins will be processed only by Router or they can be processed by any PC within the network?? What i'm trying is: i'm giving a list of IP address in the option using setsockopt system call,... (1 Reply)
Discussion started by: aamirglb
1 Replies

3. Programming

IPv4 string->int

Does anyone know how to convert a IP address given as 'string' into a 'u_int32_t'? Are there any build any functions already? (1 Reply)
Discussion started by: Freaky123
1 Replies

4. AIX

Generate Private IPv4 address..

Hi, I wanted to generate IPv4 address that communicates between client and server that dumps packets into machines.. Please help with the steps.. Am daemon new to networking.. (1 Reply)
Discussion started by: Priya Amaresh
1 Replies

5. Shell Programming and Scripting

I need to appears as different ip address when I send a form

Hi my problem is that I need to send a form to a web address using curl, from a unix shell, the web address on the receiving end will only accept incoming data from a specific ip address, and port, on another machine on our intranet, and I can not run curl on that machine. Is there any way I... (5 Replies)
Discussion started by: Paul Walker
5 Replies

6. Linux

Domain registrars & DNS servers

I have read many tutorials on bind and i understand the A,MX, CNAME records. Internally, on a LAN we can install bind and create all these records and we can tell all PC and servers to use this bind as DNS server.that's fine. On the Internet, when we have purchased a valid domain like... (5 Replies)
Discussion started by: coolatt
5 Replies