dnsmasq: maximum cache size is hardcoded to 10000

Asked by BadBrainJohnson on 2016-08-29

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:
2016-09-01
Last query:
2016-09-01
Last reply:
2016-08-30

I suggest you report a bug

Thanks actionparsnip, that solved my question.