I want to increase the DNSMASq cache size. So I created a file /jffs/configs/dnsmasq.conf.add with a single line:
cache-size=10000
By default, the cache-size=1500, but when the router reboots, DNSMASq does not start because there are now two cache-size entries in /tmp/etc/dnsmasq.conf
pid-file=/var/run/dnsmasq.pid
user=nobody
resolv-file=/tmp/resolv.conf
no-poll
interface=br0
min-port=4096
no-negcache
cache-size=1500 <--- first one
dhcp-range=lan,192.168.0.21,192.168.0.254,255.255.255.0,86400s
dhcp-lease-max=253
dhcp-authoritative
dhcp-option=lan,3,192.168.0.3
read-ethers
addn-hosts=/etc/hosts.dnsmasq
listen-address=192.168.0.3,127.0.0.1
cache-size=10000 <--- second one
I know this is the problem because when I ssh into the router, a ps | grep dnsmasq shows it is not running. Trying to run it from shell:
dnsmasq -C /tmp/etc/dnsmasq.conf and it complains about the duplicate cache-size.
My question is how to modify the "original" dnsmasq.conf if I can't use this "add" file, or is there another way to do this with the "add" file?
Thank you
cache-size=10000
By default, the cache-size=1500, but when the router reboots, DNSMASq does not start because there are now two cache-size entries in /tmp/etc/dnsmasq.conf
pid-file=/var/run/dnsmasq.pid
user=nobody
resolv-file=/tmp/resolv.conf
no-poll
interface=br0
min-port=4096
no-negcache
cache-size=1500 <--- first one
dhcp-range=lan,192.168.0.21,192.168.0.254,255.255.255.0,86400s
dhcp-lease-max=253
dhcp-authoritative
dhcp-option=lan,3,192.168.0.3
read-ethers
addn-hosts=/etc/hosts.dnsmasq
listen-address=192.168.0.3,127.0.0.1
cache-size=10000 <--- second one
I know this is the problem because when I ssh into the router, a ps | grep dnsmasq shows it is not running. Trying to run it from shell:
dnsmasq -C /tmp/etc/dnsmasq.conf and it complains about the duplicate cache-size.
My question is how to modify the "original" dnsmasq.conf if I can't use this "add" file, or is there another way to do this with the "add" file?
Thank you