I have installed dnscache (dnscache-run) from Ubuntu repositories and I have increased the CACHESIZE and DATALIMIT to 256MB (268435456).
Today I have tested it with one domain: google.es.
I have executed in console dig google.es:
;; Query time: 86 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
I have repeated the query:
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
Correct.
After I have visited various websites with Firefox for at least 10 minutes and I've repeated the query:
;; Query time: 87 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
In 10 minutes of Internet surfing has it had to empty a cache of 256MB!? Furthermore, in those 10 minutes I've done several searches on google.es.
Based on these results so disappointing my question is obvious: Does dnsache really improve the surfing speed? Maybe something is wrong with my settings?
