North American Network Operators Group

Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

Re: Web caching liability

  • From: Dan Mosedale
  • Date: Tue Jan 06 12:09:39 1998
  • Newsgroups: mcom.list.nanog

Dean Gaudet wrote:

> The DNS thing isn't something that only AOL is innocent of.  Netscape
> navigator up through the 3.x versions (I haven't tested the 4.x versions,
> they may have fixed it) caches DNS responses for the lifetime of the
> browser.  Given that some folks on stable unix machines are able to keep
> their browser open for months this sucks.

In current versions of Netscape, IP addresses are cached for fifteen minutes.  To
tweak this, add or change the following line in your prefs.js file

user_pref("network.dnsCacheExpiration", 900) // The integer is the timeout in
seconds

> One might argue it has something to do with the lack of timeout information in
> the
> gethostbyname(3) API.

This is, in fact, why it was implemented that way -- gethostbyname is available on
pretty much every platform.  I've pointed the folks responsible for this code to
res_query() related documentation and code, so this may make it into a future
version.

Dan