Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlopt_dns_servers(3) [mojave man page]

CURLOPT_DNS_SERVERS(3)					     curl_easy_setopt options					    CURLOPT_DNS_SERVERS(3)

NAME
CURLOPT_DNS_SERVERS - set preferred DNS servers SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DNS_SERVERS, char *servers); DESCRIPTION
Pass a char * that is the list of DNS servers to be used instead of the system default. The format of the dns servers option is: host[:port][,host[:port]]... For example: 192.168.1.100,192.168.1.101,3.4.5.6 The application does not have to keep the string around after setting this option. DEFAULT
NULL - use system default 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.24.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, CURLE_BAD_FUNCTION_ARGUMENT when given an invalid server list, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. SEE ALSO
CURLOPT_DNS_LOCAL_IP4(3), CURLOPT_DNS_CACHE_TIMEOUT(3), libcurl 7.54.0 December 21, 2016 CURLOPT_DNS_SERVERS(3)

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

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

cannot access host servers from Exceed

we're having problems logging into host servers thru X-window(we use hummingbird exceed)...If I have 10 host servers, I only see 3 servers from exceed which I can access. I'm not sure whether this is a exceed x-window problems or host server problms or NFS problems or NIS problems?..no... (4 Replies)
Discussion started by: dookeobih
4 Replies

2. IP Networking

Can't ping internet. Need help

I am running AIX, and just newly installed this sytem. I thought I had all the settings correct, but may be wrong. I set up the DNS to point to my router which has DNS relay. Router IP is 192.168.0.1 AIX server IP is 192.168.0.164 I can ping my router with no problem. When I do a... (6 Replies)
Discussion started by: mrciano1
6 Replies

3. UNIX for Dummies Questions & Answers

Listing all links in a file system

How would one find and list all links in a file system? My situation is that I built several servers for disaster recovery, mirror images of several servers in our main location. Instead of doing a "ls -l" on every file system down the /usr structor to verify that I have all the necessary links... (3 Replies)
Discussion started by: ruger14
3 Replies

4. IP Networking

telnet problem using "."

Hi everyone I need some help for an issue. I have a network with HP Tru64 Unix servers and Windows servers (DNS resides on Windows) Just in one of the 15 Unix servers, the commands "telnet ." , "ping ." don't work (please notice the point after the command). The error says "Names does not... (7 Replies)
Discussion started by: nmabb
7 Replies

5. IP Networking

Network problem

Folks; I have 2 SUSE servers (192.168.157.100 & 192.168.157.101) both are similar and has the same gateway 192.168.157.1 I can connect to the second one from my PC just fine (192.168.157.101). The problem is i couldn't connect to the first one using SSH even after i disabled the firewall. when i... (3 Replies)
Discussion started by: Katkota
3 Replies

6. UNIX for Advanced & Expert Users

How to shift/move DNS server ?

Its just a question arised in my mind. Suppose I have few DNS servers hosted in US and want to shift them to India or somewhere. I mean can we just clone same servers here and start them ? (3 Replies)
Discussion started by: ynilesh
3 Replies

7. Linux

Switching from one DNS to another

Hi all, we have running some linux servers with sles9 and we have some problems with our dns servers. Sometimes they don't like to work. However, is there a parameter to enable faster switching between two ore more dns servers? Thx for your help in front Regards frank (5 Replies)
Discussion started by: ortsvorsteher
5 Replies

8. Shell Programming and Scripting

Reverse DNS problem

Hi everyone, I am having a problem in the following area: I want to arrange list of Ip Addresses selected from a multiple files and make it look like this: "IP=192.168.0.1, hostname=snake.cooliris.com" Now i have already written the code to select the ip address from various files but... (4 Replies)
Discussion started by: snake450
4 Replies

9. Emergency UNIX and Linux Support

DNS and NTP strange problem

Hi, I'm having problem with my DNS and NTP. For the DNS: I'm using RHEL4, Bonding and heartbeat. Bond0 IP address: 192.168.1.10 Heartbeat or Bond0:0: 192.168.1.50 Currently, I use my heartbeat ip address for my DNS or in named.conf Everytime I reboot my server, it says that dns/named... (3 Replies)
Discussion started by: flekzout
3 Replies

10. UNIX for Dummies Questions & Answers

Secondary DNS not working

hi guys I am doing some testing for DNS I got a master DNS(192.168.2.10) and I setup a slave DNS(192.168.2.11) but when I shutdown the Master DNS my linux client cannot resolve using the slave any idea way? This is the named.conf options { query-source port 53; directory... (9 Replies)
Discussion started by: kopper
9 Replies

11. IP Networking

Named - DNS Server - within Firewall

I spent hours trying to create a system where the name server returns a value of 192.168.100.5 locally, but 209.137.nnn.nnn for requests outside of the firewall. If I run "nslookup mail.mydomain.com" from a machine inside the firewall, the 192.168 number is returned, but if I do "nslookup... (3 Replies)
Discussion started by: jgt
3 Replies

12. Shell Programming and Scripting

Uniq not doing what I want it to

I have a master list of servers. I also have a list of servers I'm not supposed to touch. I'm trying to filter out the list servers that I'm not supposed to touch from the master list of servers, so I will have a "master list of servers I can touch". When I try to filter these I'm not getting... (4 Replies)
Discussion started by: MaindotC
4 Replies

13. Shell Programming and Scripting

Script to send serial commands over ethernet

Hi there, I have a Debian server (192.168.1.1) connected through ethernet to a RS232 device servers (192.168.1.5) that is then connected through RS232 to a Video Projector. The idea is that I want to send commands to the video projector (eg. turn on/off) via the device server. According to... (4 Replies)
Discussion started by: chebarbudo
4 Replies

14. Shell Programming and Scripting

Script to delete users in the servers

Hi Team, Hope you are doing good.I am new to scripting.I have a requirement of deleting around 10 users in 100 servers.It is very time consuming by logging into each servers and delete the user.Here I have redhat 6 ,Suse linux 10&11 environment servers. In one set of servers I have... (5 Replies)
Discussion started by: muraliinfy04
5 Replies

15. Solaris

Force unmount of a SWAP filesystem left over from bad Live Upgrade

Hello, Long story short, we built an alternate boot env. back in July and applied the latest CPU to about 15 servers. Of the 15 servers, 7 servers failed to start the zones after the luactivate / reboot. The zones failed to rename from <zone>-<boot_env> back to <zone>. This is fixed in patch... (16 Replies)
Discussion started by: mainegeek
16 Replies