DNS Caching?

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
raz
Posts: 41
Joined: Sun Feb 21, 2010 11:12 am

DNS Caching?

Post by raz »

I've searched around the board and learned that DNSMasq is present and enabled on the 1.3.x revisions.

I was wondering, however, if that service was running a cache so as to respond to DNS queries.

If so, are the DNS caching settings configurable (TTL, number of entries, etc)?

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: DNS Caching?

Post by pbix »

raz wrote: I was wondering, however, if that service was running a cache so as to respond to DNS queries.
Gargoyle runs dnsmasq with its default cache size of 150 entries.
raz wrote: If so, are the DNS caching settings configurable (TTL, number of entries, etc)?
Not through the GUI but if you edit the file /etc/init.d/dnsmasq you can look for the line

Code: Select all

append_parm "$cfg" cachesize "-c"
and change it as you like. Google man dnsmasq to learn about the -c option.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

raz
Posts: 41
Joined: Sun Feb 21, 2010 11:12 am

Re: DNS Caching?

Post by raz »

Pbix,

Thanks for the hint!

After some google'ing, it seems that the command to specify the cache size is "dnsmasq -c [cache size]".

I'm not sure, however, how to modify the dnamasq file you pointed to.
Can you give an example?

Thanks!

gargoyle fan
Posts: 8
Joined: Sat Sep 01, 2012 12:16 pm

Re: DNS Caching?

Post by gargoyle fan »

raz wrote:Pbix,

Thanks for the hint!

After some google'ing, it seems that the command to specify the cache size is "dnsmasq -c [cache size]".

I'm not sure, however, how to modify the dnamasq file you pointed to.
Can you give an example?

Thanks!

YES HOW DO YOU EDIT THISS!?!!?!!!!?!?


found append_parm "$cfg" cachesize "-c"

would it be:

Code: Select all

append_parm "$cfg" cachesize "-c, --cache-size=<1000>"

but do i delete the -c and replace it with a number or leve it and put somethign else

Post Reply