login about faq

Do objects like CkHttp do DNS caching? If so, is there any way of clearing the cache?

Our software uses CkHttp to get data using HTTP, and a week ago, we changed the IP address which the hostname resolved to. The TTL on the DNS A record was only 1 hour, but we are still getting some HTTP requests to the old IP address (a week later). Most HTTP requests are going to the new address, and I've done several tests to check the DNS has correctly changed.

So, my next guess is that CkHttp has cached the DNS entry, and is not honouring the DNS TTL, and if the software hasn't been restarted, then it is still accessing the old IP address. If this is the case, then we'd like to periodically flush the DNS cache in the next release, so that we don't get this problem again.

I can't see any obvious functions to flush the DNS cache.

Any ideas?

asked Apr 22 '14 at 17:42

pscs's gravatar image

pscs
1612

I will investigate this issue soon. I don't have an answer yet..

(Apr 23 '14 at 13:00) chilkat ♦♦

Sorry for the delay, this is still on the list..

(Apr 29 '14 at 10:48) chilkat ♦♦

Well, we need the VC++ 12.0 x86 (Platform Toolset v120_xp) version, but if it's going to be on the website within the next month or so, we can just wait for that.

(I'm mostly just glad I now know what was happening ;-) )

link

answered May 06 '14 at 11:09

pscs's gravatar image

pscs
1612

Well, we need the VC++ 12.0 x86 (Platform Toolset v120_xp) version, but if it's going to be on the website within the next month or so, we can just wait for that.

(I'm mostly just glad I now know what was happening ;-) )

(May 06 '14 at 11:09) pscs

I have implemented a scheduled task to run the ifconfig with the /FLUSHDNS option, but am not real sure that it works.

We have one client that has issues on their server from time to time. After the initial hit, we move the process to another server where a service wakes up 24x7 each 30 minutes and tries again.

It possibly could be something in the chilkat software. This is the SFTP connect.

link

answered Apr 30 '14 at 09:59

cdlvj130's gravatar image

cdlvj130
9691017

A solution is available in v9.5.0.38.

See http://www.cknotes.com/v9-5-0-38-micro-update-trustedroots-objectclass-added-and-other-various-fixes/

Please tell me exactly what build you would need (programming language, operating system, VC++ version, .NET version, Perl version, etc. ) so that I can provide the update..

link

answered May 06 '14 at 10:51

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×11

Asked: Apr 22 '14 at 17:42

Seen: 953 times

Last updated: May 06 '14 at 11:09

powered by OSQA