Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlopt_dns_interface(3) [mojave man page]

CURLOPT_DNS_INTERFACE(3)				     curl_easy_setopt options					  CURLOPT_DNS_INTERFACE(3)

NAME
CURLOPT_DNS_INTERFACE - set interface to speak DNS over SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DNS_INTERFACE, char *ifname); DESCRIPTION
Pass a char * as parameter. 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 NULL to use the default setting (don't bind to a specific interface). The application does not have to keep the string around after setting this option. DEFAULT
NULL PROTOCOLS
EXAMPLE
TODO AVAILABILITY
Added in 7.33.0. This option also requires that libcurl was built with a resolver backend that supports this operation. The c-ares backend is the only such one. RETURN VALUE
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_NOT_BUILT_IN if support was disabled at compile-time. SEE ALSO
CURLOPT_DNS_SERVERS(3), CURLOPT_DNS_LOCAL_IP4(3), libcurl 7.54.0 December 21, 2016 CURLOPT_DNS_INTERFACE(3)

Check Out this Related 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)
Man Page

3 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. IP Networking

Multihomed DNS Clients?

I'm not sure it that's the right term for what I'm asking about, but it's the best I could come up with. Here is my situation... I'm setting up a network using OpenVPN. The clients I'm setting up will need to be able to access their own DNS servers (to resolve internal names at their location)... (4 Replies)
Discussion started by: deckard
4 Replies

3. IP Networking

DNS and two subnets

Hi guys I started to work in a small company which doesn't have infrastructure and I need to built it. My problem is: I am a student with theoretical knowledge but without practical one so I don't have any ideas how to solve my problem. I installed on CentOS 6.4 DNS and DHCP. This... (1 Reply)
Discussion started by: solaris_user
1 Replies