How many DNS-records fits in the recommended 10 MB cache?
Just curious how many DNS-entries fits in the recommended 10 MB cache in CLI? Will it add records until the 10 MB is filled in memory and then the oldest record will be replaced or is stale DNS-records deleted in advance? I read that it works as a sort of redundancy if the DNS-servers can't be reached, but does it also use stale DNS-records in that scenario?
When I have checked the command "nextdns cache-keys" a few times the largest mine have been is around 1.500 entries, but is this maxed out? Any way to check how much the cache is filled up (in % or MB) any time or should we just use 10 MB and not ask any questions?
8 replies
-
That's is correct, it will keep stale records in memory and use them in case of issue talking to the upstream. Least used entries are replace with new onces the cache reaches the 10MB size. 10MB can hold a lot of records if you consider a typical DNS response is in the 50-100 bytes.
-
Would it be fair to say the 10MB setting is to prevent a malfunction from using too much space rather than for performance reasons?
-
I guess me changing that too 100mb was kind of pointless then
Content aside
- 3 yrs agoLast active
- 8Replies
- 781Views
-
4
Following