#438 Use and update DNS cache files

closed
9
2012-10-11
2004-06-25
Tim Moss
No

As far as I can tell AWstats can work in two modes with
DNS lookups.

It can either use a static dns cache file, but won't do
any more lookups if they are not in the file.

Or it can do the lookups as it goes along, and writes out
a dnscache file.

Can it combine the two? So make use of the cache file
of lookups it has already done, but still do real lookups
for ones it doesn't already know, and update the
cache file with these results?

Discussion

  • Tim Moss
    Tim Moss
    2004-08-17

    Logged In: YES
    user_id=664829

    Whatever I try I can't get it to do what I want.
    Currently have
    DNSLookup=1
    DNSStaticCacheFile="dnscache.txt"
    DNSLastUpdateCacheFile="dnscachelastupdate.txt"

    dnscachelastupdate.sitename.txt gets overwritten each time
    I run awstats
    dnscache.sitename.txt stays the same

    this means newly made lookups are lost - managed to work
    aroudn this with a script that merges the two files, but would
    be nice if AWstats did this

    more importantly I'm not sure it is being used as speed of
    AWstats is the same whether it is there or not

     
  • Daniel Wiberg
    Daniel Wiberg
    2006-02-20

    Logged In: YES
    user_id=135549

    Yes, using caching AND full DNS lookups would be great,
    currently when using DNS lookup it looks up the same hosts
    over and over. It should first check the cache-file and if
    it is not there it should look it up, I think this would
    speed up the process at least 10 times, probably more.

     
  • Logged In: YES
    user_id=96898

    This is already how it works.
    AWStats use both systems.
    If you use
    DNSStaticCacheFile="dnscache.txt"
    DNSLastUpdateCacheFile="dnscachelastupdate.txt"
    all files are read and used to increase speed. Once process
    is finished dnscachelastupdate.txt is updated with most
    recent resolutions to avoid an always growing file.