What is the best 'cache-size=' number for dnsmasq+adblocks?

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
enihcam
DD-WRT Novice


Joined: 18 Oct 2011
Posts: 3

PostPosted: Sun Nov 25, 2018 9:15    Post subject: What is the best 'cache-size=' number for dnsmasq+adblocks? Reply with quote
Hi dd-wrt team,

In my home router (x86-64 based), I use /etc/hosts for ad-blocks, so there are >60,000 entries mapping to 0.0.0.0 inside.

And I also use dnsmasq for DNS caching.

So, what is the best number for 'cache-size='? Should it be larger than the count of entries in /etc/hosts?

There was a similar question, but nobody answer:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1619422
Sponsor
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6440
Location: UK, London, just across the river..

PostPosted: Sun Nov 25, 2018 11:18    Post subject: Reply with quote
hmm... cache size im not so sure it works on every router check it with ps if it shows your selected size than it works...i use cache-size=5120 on my R7800
but in syslog says daemon.info dnsmasq[825]: started, version 2.80 cachesize 5120

but in CLi is says
dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf --cache-size=1500 --dhcp-option=252," "

so not very clear is it interchangeable at all

also about DNSmasq and additional options box
https://svn.dd-wrt.com/ticket/6315#no1

as well if you use adblocking scripts most of them use space in nvram but there must be a way how to move those entries on USB if so...personally i use nvram and adblocking script

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum