Author
Message
XxUnkn0wnxX DD-WRT Novice Joined: 10 Aug 2015 Posts: 39
Posted: Tue Aug 11, 2015 16:52 Post subject: WNDR4000 DNSMasq - cache-size breaks DHCP Leasing
well i am on r27600
and so far everything is working but when try to use cache-size and i do DHCP renew lease on my Client Computer it takes around 2-3 min to apply..
i looked around the forums regarding DHCP lease issues and i haven't found an answer for this. (including older Revisions)
tested older revision such as r27506 - same issue
Back to top
Sponsor
jwh7 DD-WRT Guru Joined: 25 Oct 2013 Posts: 2670 Location: Indy
Posted: Tue Aug 11, 2015 19:09 Post subject: Re: WNDR4000 DNSMasq - cache-size breaks DHCP Leasing
http://svn.dd-wrt.com/ticket/4702
I thought that sounded familiar...
KrypteX/Specimen/Kong; any more thoughts/updates on this? _________________# NAT/SFE /CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ , Builds , Types , Modes , Changes , Demo #
OPNsense x64 5050e ITX|DD : DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250 |FreshTomato: F7D8302@532 |OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
Back to top
XxUnkn0wnxX DD-WRT Novice Joined: 10 Aug 2015 Posts: 39
Posted: Tue Aug 11, 2015 19:55 Post subject:
?
so in newer versions the cache-size cannot be added coz it already in the config?
how then am i supposed to override the default? edit the conf file itself? + i haven't been able to find it via telnet etc folder it not there..
Back to top
JAMESMTL DD-WRT Guru Joined: 13 Mar 2014 Posts: 856 Location: Montreal, QC
Posted: Wed Aug 12, 2015 1:48 Post subject:
well you can always modify the conf file and restart dnsmasq with a startup script
sleep 10
sed -i '/cache-size/d' /tmp/dnsmasq.conf
echo 'cache-size=5000' >> /tmp/dnsmasq.conf
killall dnsmasq
dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf
do not restart the service as it will recreate the config file. you need to modify, kill and restart.
FYI /etc is read only
Back to top
jwh7 DD-WRT Guru Joined: 25 Oct 2013 Posts: 2670 Location: Indy
Posted: Tue Dec 01, 2015 22:04 Post subject:
XxUnkn0wnxX wrote: so in newer versions the cache-size cannot be added coz it already in the config?
I suppose this thread should be updated (for others searching) based on the 28397 build:
For this: In SVN 4956, Kong wrote: tatsuya46 wrote: r28393 cache-size is missing from dnsmasq.conf unless its manually entered, dnsmasq site* says default is 150 when not overridden. if i didnt specify a cache-size & default for ddwrt is still 1500, shouldnt it be in the config as 1500?
we set cache-size now through commandline argument, config params override commandline params
*Ref: dnsmasq wrote: -c, --cache-size=<cachesize>
Set the size of dnsmasq's cache. The default is 150 names. Setting the cache size to zero disables caching.
_________________# NAT/SFE /CTF: limited speed w/ DD # Repeater issues # DD-WRT info: FAQ , Builds , Types , Modes , Changes , Demo #
OPNsense x64 5050e ITX|DD : DIR-810L, 2*EA6900@1GHz, R6300v1, RT-N66U@663, WNDR4000@533, E1500@353,
WRT54G{Lv1.1,Sv6}@250 |FreshTomato: F7D8302@532 |OpenWRT: F9K1119v1, RT-ACRH13, R6220, WNDR3700v4
Back to top