LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-24-2011, 11:52 AM   #1
flux242
LQ Newbie
 
Registered: Mar 2011
Posts: 15

Rep: Reputation: 0
local dns server cache size optimization


hi,

Does anybody have some thoughts about a local dns server cache size? What is the optimal one? In terms of memory consumption and number of re-enters into the cache. Lets say that default size is 150, so I've change this to 500 and after some time I see 379 re-enters into the cache. Simply put I need to increase the cache size 2 times. But due to the fact that browser preloads dns names it is not possible to interpret the number of overwrites in terms that it is not possible to say if useful cache entries were overwritten or those that the browser precached ( in other words not needed ). In this case it is ok to overwrite unwanted entries because it is not likely that I'll need these entries anyway

I'm running the dnsmasq on an embedded system with limited ram and with an umts dongle attached. It is important to keep the cache size as small as possible to reduce memory usage and at the same time to reduce number of external lookups because dns latency of the umts connection is high (1-2sec for the dns query)
 
Old 04-25-2011, 01:22 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Daniel Bernstein wrote a lot of quirky network stuff and seeme knowledgeable about tcp/ip. His dnscache had instructions for a cache of 1MB based on your average pc or small network. He may have changed it. This link is given with a note of caution.
http://cr.yp.to/djbdns/cachesize.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Managed DNS server lists and dnsmasq DNS cache nitrousoxide82 Linux - Networking 1 02-21-2014 10:34 PM
LXer: Faster Browsing In Linux With Local DNS Cache LXer Syndicated Linux News 0 12-12-2009 02:51 AM
DNS cache size shipon_97 Linux - Networking 3 09-13-2006 02:29 AM
Customizing DNS Cache so that it resolves mail.localdomain.com to local ip address gugabaga Linux - Networking 2 02-22-2006 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration