dnsmasq: maximum cache size is hardcoded to 10000

Asked by BadBrainJohnson

Most people won't run into this problem, but if you use a very large hosts-file (like this one here: http://someonewhocares.org/hosts/) you might fill up the cache completely. No matter what you set for cache-size, the maximum number is hardcoded in the file option.c of the dnsmasq sources.

As there is no warning, you might end up wondering: why the hell is dnsmasq not caching anything?

Using 10000 as a default value in the config file surely is a sane choice, but higher values should be possible (I'm using 20000 now and the moon is still up in the night sky). Or at least there should be a comment in the config to indicate that 10000 is a hard limit.

My question: should I file this as a bug?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dnsmasq Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug

Revision history for this message
BadBrainJohnson (badbrainjohnson) said :
#2

Thanks actionparsnip, that solved my question.