Cache evictions and cache size

Expected Behaviour:

Increase in cached entries

Actual Behaviour:

No increase despite changing the value

Debug Token:

It is a restricted env, no way to upload data without 3 months looking for authorization.

Basically I have this situation

So I tired to increase the cache-size param, but it seems I had no luck.
root@xxx:~# dig +short chaos txt cachesize.bind
"100000"
In the pihole log I have
Mar 6 11:27:39 dnsmasq[1222]: started, version pi-hole-2.80 cachesize 100000

But the interface shows 10000.
Also if I put the cache-size setting in a file that is not 01-pihole.conf, the DNS does not start at all (no matter the size I put in), so this cannot survive any upgrade.

Any idea how to setup a larger cache? The doc at DNS cache - Pi-hole documentation is simply not useful.
Thanks

I think I read the docs where it is stated to grow the cache when you're having cache evictions.
Using null blocking btw.

That is a lot of activity going into your cache. A whole lot. How much traffic is your Pi-Hole seeing in 24 hours, and does one domain dominate others? Are you using conditional forwarding in Pi-Hole?

echo ">stats" | nc localhost 4711

echo ">top-domains (15)" | nc localhost 4711

Check that you don't have another file that is specifying the cache size: sudo grep cache-size -R /etc

echo ">stats" | nc localhost 4711
domains_being_blocked 27285
dns_queries_today 2991488
ads_blocked_today 156
ads_percentage_today 0.005215
unique_domains 400217
queries_forwarded 1217953
queries_cached 1771389
clients_ever_seen 6
unique_clients 5
dns_queries_all_types 2991488
reply_NODATA 243236
reply_NXDOMAIN 161903
reply_CNAME 1361710
reply_IP 1049821
privacy_level 0
status enabled
---EOM---

and
echo ">top-domains (15)" | nc localhost 4711
0 72225 a.root-servers.net
1 62932 dns.msftncsi.com
2 50946 wpad.my-domain.mpls
3 50613 www.bing.com
4 33857 netin.my-domain.it
5 31787 teredo.ipv6.microsoft.com
6 30657 www.my-domain.it
7 26417 signal.pod1.avatar.ext.hp.com
8 26317 www.google-analytics.com
9 25518 www.google.com
10 25173 time.nist.gov
11 24800 time-a.nist.gov
12 24798 time-b.nist.gov
13 24782 time-nw.nist.gov
14 24750 nz.pool.ntp.org
---EOM---
No forwarders for any domain.
The other setting is in the 01-pihole.conf file of dnsmasq, and I read several thread about multiple values generating an error. I think the documentation I linked above should be corrected since if you do exactly what it is written:

  • you cannot go above the hard limit of 10000 event it is stated the opposite
  • you'll end up with the DNS not restarting due to the duplicate value of cache size

I would clarify I have no evident performance problems here, just going to optimize as per documentation.

Edit: my-domain was the replacement for my real DNS domain

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.