Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
4
Newest
 Teacher
Impact
~176 people reached

  • 0 posts edited
  • 0 helpful flags
  • 9 votes cast
Jul
20
comment How long does dnsmasq cache dns?
@perlwle No, it would not, I had assumed you always received a TTL of zero, increasing it to 1200 would help. I would suggest looking into DNSCrypt. Without further information as to how long lookups take, your connection speed, and the effects of 3rd parties, I cannot give a clearer answer. If you need a more powerful DNS cache/resolver, I would recommend the basic part of this tutorial about Unbound, it works on Ubuntu 12.04 perfectly well from the standard repositories. (Note that Google DNS properly handles DNSSEC now.)
Jul
20
comment How long does dnsmasq cache dns?
@perlwle TTL will always decrease with time. A fresh lookup will have the TTL which is set by the controller of the domain. It is a number in seconds, and it counts down to zero, once it is zero, it is considered stale, and a fresh query needs to run. It is possible for a third party to interfere in a significant manner with DNS lookups, as is the case with the GFW which is the reason the --min-cache-ttl was introduced to dnsmasq. Increasing the max-[cache-]ttl above the value dnsmasq recieves will have no effect whatsoever.
Jul
20
awarded  Teacher
Jul
17
answered How long does dnsmasq cache dns?
Dec
31
comment Should Varnish Hits Touch PHP?
In addition to the above: Drupal can have many pitfalls which will prevent Varnish from caching pages, and there are settings in settings.php to control much of this behaviour in Drupal 7, for Drupal 6 the easiest path is to use Pressflow instead. (By default in Drupal 6, Varnish would not cache pages as there there is a cookie for even anonymous users.) There are many other ways to optimize a server towards handling Drupal,which can drastically reduce resource usage. (For example memcached, non-default MySQL configuration, and tweaking of PHP, and opcode parameters.)
Dec
30
comment Should Varnish Hits Touch PHP?
Is it possible to get a link to the site in question? If not, are you using any modules which may be making ajax requests back to the server? Ads, statistics etc (A list of enabled modules might help)? What headers are set on the Drupal responses? Are they actually marked as being cacheable? Is the increased memory usage from PHP itself, or is it driven up by the amount of memory varnish uses? Are you using the Drupal varnish module? What are your settings on the "Performance" page?
Sep
22
awarded  Supporter
Jul
25
awarded  Informed
Jul
25
awarded  Autobiographer