From: eldy <>
Date: Sat, 27 Jul 2002 17:39:37 +0000 (+0000)
Subject: AWStats can use a DNS cache file
X-Git-Tag: AWSTATS_5_0_BETA~133
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=607dbe4fef63daca922a720a40735a8c5a47be74;p=thirdparty%2FAWStats.git
AWStats can use a DNS cache file
---
diff --git a/docs/awstats_config.html b/docs/awstats_config.html
index 1de2de75..8c3c0317 100644
--- a/docs/awstats_config.html
+++ b/docs/awstats_config.html
@@ -389,19 +389,31 @@ when reading it), follow the example:
-DNSCacheFile
+DNSStaticCacheFile
Version : 5.0 +
-
# AWStats can do reverse DNS lookups through a DNS cache file that is either
-
# created/updated at run-time, or has been previously created, either by a
-
# previous run of AWStats, or other tools using same format of DNS cache file.
-
# If no path is gave in DNS cache file name, AWStats will search DirData
-
# directory.
+
# AWStats can do reverse DNS lookups through a static DNS cache file that was
+
# previously created manually. If no path is gave in static DNS cache file
+
# name, AWStats will search DirData directory. This file is never changed.
# This option is not used if DNSLookup=0.
-
# Note: DNS cache file must have format: no ipaddress resolved_hostname
+
# Note: DNS cache file must have format: ipaddress resolved_hostname
# Example: "/mydnscachedir/dnscache"
-
# Default: "dnscachefile.txt"
+
# Default: "dnscache.txt"
+
#
+
DNSStaticCacheFile="dnscache.txt"
+
+
+
+DNSLastUpdateCacheFile
+Version : 5.0 +
+
# AWStats can do reverse DNS lookups through a DNS cache file that was created
+
# by a previous run of AWStats. This file is erased and recreated after each
+
# statistics update process. You don't need to create and/or edit it.
+
# AWStats will read and save this file in DirData directory.
+
# This option is not used if DNSLookup=0.
+
# Example: "/mydnscachedir/dnscachelastupdate"
+
# Default: "dnscachelastupdate.txt"
#
-
DNSCacheFile="dnscachefile.txt"
+
DNSLastUpdateCacheFile="dnscachelastupdate.txt"
diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl
index 0ed19ad1..b7066c4f 100644
--- a/wwwroot/cgi-bin/awstats.pl
+++ b/wwwroot/cgi-bin/awstats.pl
@@ -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";