WNDR4000 DNSMasq - cache-size breaks DHCP Leasing

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
XxUnkn0wnxX
DD-WRT Novice


Joined: 10 Aug 2015
Posts: 39

PostPosted: Tue Aug 11, 2015 16:52    Post subject: WNDR4000 DNSMasq - cache-size breaks DHCP Leasing Reply with quote
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
Sponsor
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Tue Aug 11, 2015 19:09    Post subject: Re: WNDR4000 DNSMasq - cache-size breaks DHCP Leasing Reply with quote
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
XxUnkn0wnxX
DD-WRT Novice


Joined: 10 Aug 2015
Posts: 39

PostPosted: Tue Aug 11, 2015 19:55    Post subject: Reply with quote
?

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..
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Wed Aug 12, 2015 1:48    Post subject: Reply with quote
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
jwh7
DD-WRT Guru


Joined: 25 Oct 2013
Posts: 2670
Location: Indy

PostPosted: Tue Dec 01, 2015 22:04    Post subject: Reply with quote
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:
KrypteX wrote:
Changelog excerpt from http://www.dd-wrt.com/phpBB2/viewtopic.php?t=279467
    [...]
    [388] Mod: DNSMasq cache-size adjustable
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
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum