]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
AWStats can use a DNS cache file
authoreldy <>
Sat, 27 Jul 2002 17:39:37 +0000 (17:39 +0000)
committereldy <>
Sat, 27 Jul 2002 17:39:37 +0000 (17:39 +0000)
docs/awstats_config.html
wwwroot/cgi-bin/awstats.pl

index 1de2de750cbf5fdfd73bc74ad460352c83a001a6..8c3c0317f1428bbc8c5931608eb0ed0f635ae124 100644 (file)
@@ -389,19 +389,31 @@ when reading it), follow the example:<br>
 \r
 <br><br><hr>\r
 \r
-<a name="DNSCacheFile"><b>DNSCacheFile</b></a><br>\r
+<a name="DNSStaticCacheFile"><b>DNSStaticCacheFile</b></a><br>\r
 <b>Version : </b>5.0 +<br>\r
-<br># AWStats can do reverse DNS lookups through a DNS cache file that is either\r
-<br># created/updated at run-time, or has been previously created, either by a\r
-<br># previous run of AWStats, or other tools using same format of DNS cache file.\r
-<br># If no path is gave in DNS cache file name, AWStats will search DirData\r
-<br># directory.\r
+<br># AWStats can do reverse DNS lookups through a static DNS cache file that was\r
+<br># previously created manually. If no path is gave in static DNS cache file\r
+<br># name, AWStats will search DirData directory. This file is never changed.\r
 <br># This option is not used if DNSLookup=0.\r
-<br># Note: DNS cache file must have format: no ipaddress resolved_hostname\r
+<br># Note: DNS cache file must have format:  ipaddress  resolved_hostname\r
 <br># Example: "/mydnscachedir/dnscache"\r
-<br># Default: "dnscachefile.txt"\r
+<br># Default: "dnscache.txt"\r
+<br>#\r
+<br>DNSStaticCacheFile="dnscache.txt"\r
+\r
+<br><br><hr>\r
+\r
+<a name="DNSLastUpdateCacheFile"><b>DNSLastUpdateCacheFile</b></a><br>\r
+<b>Version : </b>5.0 +<br>\r
+<br># AWStats can do reverse DNS lookups through a DNS cache file that was created\r
+<br># by a previous run of AWStats. This file is erased and recreated after each\r
+<br># statistics update process. You don't need to create and/or edit it.\r
+<br># AWStats will read and save this file in DirData directory.\r
+<br># This option is not used if DNSLookup=0.\r
+<br># Example: "/mydnscachedir/dnscachelastupdate"\r
+<br># Default: "dnscachelastupdate.txt"\r
 <br>#\r
-<br>DNSCacheFile="dnscachefile.txt"\r
+<br>DNSLastUpdateCacheFile="dnscachelastupdate.txt"\r
 \r
 <br><br><hr>\r
 \r
index 0ed19ad1603eab14988b0bbfc8913cc8ca76f4f3..b7066c4f4de74e80ec7cf8f886f1426e6f3be833 100644 (file)
@@ -2660,7 +2660,6 @@ sub Save_DNS_Cache_File {
                        warning("Warning: Failed to open for writing last update DNS Cache file \"$filetosave\": $!");
                        return 1;
                }
-               # TODO Limit size of save
                foreach my $key (keys %$hashtosave) {
 #                      if ($hashtosave->{$key} ne "ip") {
                                #print DNSFILE "0\t$key\t$hashtosave->{$key}\n";