Replies: 10 comments 7 replies
-
Note that it also subtracts the elapsed time. So if you look up the cached entry after 10s the TTL would be 10s less than it originally was. |
Beta Was this translation helpful? Give feedback.
-
Hello livingentity. Thank you, your answers support my thoughts about how this feature works. Nevertheless, I think there is something fishy in logic: I would assume that TTL must be less than 600 and never greater but collected data show that TTL could be greater than If you wonder I could post gathered data. I ran a script about a day but now I think I've chosen wrong repetition time: half an hour, it should be, e.g., 23 minutes. |
Beta Was this translation helpful? Give feedback.
-
Hello vp1981. Yes, it would probably help to know how exactly you measure your results. Also, is there a chain of caches or only dnscrypt? |
Beta Was this translation helpful? Give feedback.
-
Hello livingentity and all. It took a time to collect data, but now I can share them to discuss what is going on.
I just do a local DNS query using
Hmm, both yes and no (see the script). I gathered data on three hosts with the following settings in
(yes, I changed only one line). The data are written into file with five columns, the TTL returned by P.S. Maybe I have to improve my little script to write not only these data, but also cache settings from |
Beta Was this translation helpful? Give feedback.
-
Thanks vp1981. Don't have the time for a proper analysis right now but a few things:
|
Beta Was this translation helpful? Give feedback.
-
Hello,
Not urgent, but annoying.
Ouch...
I would like to know from where you get TTL=3600 from. I'm still thinking that if
That mysterious to me too. I don't get how it is even possible. Why such bizarre numbers.
Would be like to test this, but then I have to build package myself (not a problem) with these patches (I don't really known which exactly, may be it is worth to build just git HEAD). |
Beta Was this translation helpful? Give feedback.
-
Dunno. I'll try to write more versatile test suite to use different repetition time and add more information (about used
I tried to avoid possible "edge" cases. First I chose 23 minutes, but in seconds it is a multiple of 60 (remember, that domain in question has |
Beta Was this translation helpful? Give feedback.
-
Update. Now I gathered information for There is one glitch, but still I don't understand, is it correct that |
Beta Was this translation helpful? Give feedback.
-
Probably best to verify first if it actually does that by either using it directly with its resolve option or with dnsmasq completely removed. |
Beta Was this translation helpful? Give feedback.
-
Hello. News on the issue. This time I tested As before, I tested with the cache on and off, and here the results:
Again, there are some "big" numbers, but they are within MIN MAX limits. Still, I think there is room for improvement. Besides that on hosts
and got following results:
No TTL, so no useful information for me, but I can see which resolver is used. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I have a few questions about TTL cache feature.
cache_min_ttl=600
, does it mean that for any response with TTL less than 600dnscrypt-proxy
will set TTL=600?cache_max_ttl=3600
, does it mean that for any response with TTL greater than 3600dnscrypt-proxy
will set TTL=3600?dnscrypt-proxy.toml
and some host (dynDNS) has DNS record with TTL=60, does that mean that DNS response returned bydnscrypt-proxy
(say, withdig
ordrill
) will have TTL less than or equal to 600?I tested a bit with some domain (
aradzh.crabdance.com
) that has TTL=60, but TTL returned bydnscrypt-proxy
varies from 299 to 3599. Is this correct behavior?Of course, I could be completely wrong and
cache_min|max_ttl
has nothing to do with DNS TTL at all.Beta Was this translation helpful? Give feedback.
All reactions