Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlopt_dns_cache_timeout(3) [mojave man page]

CURLOPT_DNS_CACHE_TIMEOUT(3)				     curl_easy_setopt options				      CURLOPT_DNS_CACHE_TIMEOUT(3)

NAME
CURLOPT_DNS_CACHE_TIMEOUT - set life-time for DNS cache entries SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DNS_CACHE_TIMEOUT, long age); DESCRIPTION
Pass a long, this sets the timeout in seconds. Name resolves will be kept in memory and used for this number of seconds. Set to zero to completely disable caching, or set to -1 to make the cached entries remain forever. By default, libcurl caches this info for 60 seconds. The name resolve functions of various libc implementations don't re-read name server information unless explicitly told so (for example, by calling res_init(3)). This may cause libcurl to keep using the older server even if DHCP has updated the server info, and this may look like a DNS cache issue to the casual libcurl-app user. Note that DNS entries have a "TTL" property but libcurl doesn't use that. This DNS cache timeout is entirely speculative that a name will resolve to the same address for a certain small amount of time into the future. DEFAULT
60 PROTOCOLS
All EXAMPLE
TODO AVAILABILITY
Always RETURN VALUE
Returns CURLE_OK SEE ALSO
CURLOPT_DNS_USE_GLOBAL_CACHE(3), CURLOPT_DNS_SERVERS(3), libcurl 7.54.0 February 03, 2016 CURLOPT_DNS_CACHE_TIMEOUT(3)

Check Out this Related Man Page

CURLOPT_SSL_SESSIONID_CACHE(3)				     curl_easy_setopt options				    CURLOPT_SSL_SESSIONID_CACHE(3)

NAME
CURLOPT_SSL_SESSIONID_CACHE - enable/disable use of the SSL session-ID cache SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSL_SESSIONID_CACHE, long enabled); DESCRIPTION
Pass a long set to 0 to disable libcurl's use of SSL session-ID caching. Set this to 1 to enable it. By default all transfers are done using the cache enabled. While nothing ever should get hurt by attempting to reuse SSL session-IDs, there seem to be or have been broken SSL implementations in the wild that may require you to disable this in order for you to succeed. DEFAULT
1 PROTOCOLS
All TLS-based EXAMPLE
TODO AVAILABILITY
Added in 7.16.0 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_DNS_CACHE_TIMEOUT(3), CURLOPT_SSLVERSION(3), libcurl 7.54.0 February 03, 2016 CURLOPT_SSL_SESSIONID_CACHE(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How do i define named to cache only?

i need to do caching from the DNS server to another server. i read that i need to configure my /etc/named.conf... but what do i need to write in there? thanks! (2 Replies)
Discussion started by: eliraza6
2 Replies

2. Solaris

t2000 DNS issue

I have an issue with DNS on a solaris t2000 When I set up the zones there was an issue with the /etc/resolv.conf, I had made a typo in my DNS server. I only noticed this after creating my new zones. I have corrected this in the global zone and I am now able to ping and nslookup inthe... (2 Replies)
Discussion started by: james dewitt
2 Replies

3. AIX

DNS configuration help

I'm trying to configure DNS on a AIX 5.4 machine and I just can't figure it out. The IBM guide doesn't work. Smit also doesn't work. I have no idea how to make this happen. (2 Replies)
Discussion started by: madavid0
2 Replies

4. Red Hat

about "caching only name server" !

Friends , If I want to configure "caching only name server " in RHEL 5 , then is it necessary to configure other necessary files which are required for the primary DNS server ? i.e., For configuring "caching only name server" in RHEL5 , then which files are need to configure only ? (1 Reply)
Discussion started by: shipon_97
1 Replies

5. Solaris

timeout : unable to connect to DNS

i tried to configure DNS on my x86 PC ,in a network but after following all the below mentioned steps , I am getting the message ."timeout : unable to connect to DNS" Steps followed : Step 1. First check that the necessary packages are installed to configure DNS. Step 2. Configure the... (1 Reply)
Discussion started by: kush singh
1 Replies

6. IP Networking

DNS Cache-Only Config Advice

Hi Chaps and Chappettes, I've had a short period of time recently to learn and implement DNS cache-only in our organisation. Trouble is, according to my tcpdumps, the amount of traffic on port 53 has increased. This is of course the exact opposit of the desired effect. Would y'all mind looking... (2 Replies)
Discussion started by: danny.hudson
2 Replies

7. Solaris

Solaris 10 - DNS / Issues / Help

Hi all Long time no speak, I hope you are all well. Im looking at a DNS issue here and reckon Igot a AD / DNS server issue elsewhere but need to rule out the configuration of my two server's first. IVe got the nameserver enteries in /etc/resolv.conf and dns in the /etc/nsswitch.conf ... (2 Replies)
Discussion started by: sbk1972
2 Replies

8. Red Hat

Configure OpenDNS

We are using internal DNS server to relove for internal systems, and the same DNS server resolves any external domains for example yahoo.com I would like to use openddns to resolve the external domains and put some control. I looked at the resolve.conf file and it is as follows search... (13 Replies)
Discussion started by: atish0
13 Replies

9. Solaris

DNS needs to be refreshed periodically to work

We are having a problem with external address being resolved. All internal addresses work fine. Refreshing the DNS server service solves the issue for a little while(I don't have an exact number on how long, <1 hour) and then eventually stops working. We use Webem to manage the build in DNS and... (2 Replies)
Discussion started by: Lespaul20
2 Replies

10. AIX

Xbrowser issue for aix

dear firnd.. psl help me i am trying to conenct from xbrowser to my aix server. byt i am not getting any response from server.... pls help me to resolve this. (3 Replies)
Discussion started by: ded325
3 Replies

11. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

12. Emergency UNIX and Linux Support

DNS flush is not working

I have a Linux machine and it seems DNS cache is not getting clear on it. It is still showing old values, even after changing in DNS server by Network team. I did /etc/init.d/nscd restart But still it is showing old values on this server. On my rest of servers in environment, nslookup is showing... (7 Replies)
Discussion started by: solaris_1977
7 Replies

13. Red Hat

DNS Resolution Issue

Hello, Having issue resolving DNS using the IP address. Using the server Name it resolves fine. Was wondering if there is any configuration issue. # nslookup xxxxxxxx01 Server: Primary DNS IP Address: Primary DNS IP#53 Name: xxxxxxxx01.local domain Address: x.y.z.123 # nslookup... (1 Reply)
Discussion started by: ikn3
1 Replies

14. 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

15. Linux

Host name Lookup Failure

Dear All , I am able to resolve my server using its ipaddress from other machines. But not from the same machine. But I have updated the DNS entry in /etc/resolv.conf. Even SSH login from other server shows Hostname Lookup Failure. Please help me on this. Rj (5 Replies)
Discussion started by: jegaraman
5 Replies