Ask Your Question

NetworkManager controlled dnsmasq, how to increase cache size?

asked 2016-06-12 09:59:08 -0500

Aeyoun gravatar image

How do I increase the DNS cache size in dnsmasq when it’s being controlled by NetworkManager? I’ve set dns=dnsmasq in NetworkManager.conf, but it has a very small default of 400 domains in the cache. I haven’t seen any obvious way to increase this size, and /etc/dnsmasq is ignored by the NetworkManager controlled instance of dnsmasq.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-06-12 19:35:13 -0500

mclmmc gravatar image

updated 2016-06-12 19:39:04 -0500

it may be that NetworkManager look somewhere else.


to see the running configuration look in /run/NetworkManager/dnsmasq.conf

try this:

echo "cache-size=1234567890" >> /etc/NetworkManager/dnsmasq.d/cache.conf

here more information

edit flag offensive delete link more


Thsi had no effect after restaring the service, or even restarting the device.

Aeyoun gravatar imageAeyoun ( 2016-06-13 07:15:15 -0500 )edit

Question Tools

1 follower


Asked: 2016-06-12 09:59:08 -0500

Seen: 1,365 times

Last updated: Jun 12 '16