webalizer

sKIm skim na egarden.cz
Čtvrtek Říjen 12 09:12:04 CEST 2000


Zdravim 

chtel bych se zeptat na takovy zajimavy ukaz.
pouzivam webalizer na zpracovani logu s apache a chtel bych tam podporu 
zjistovani jmen pomoci reverzni DNS.

Takze jsem stahl verzi posledni tzn vyssi nez 2.00 , ktera umi DNS
prelozil to s prametry pro podporu DNS prevodu a s ceskym jazykem.

Tedkom to jede akorat to nechce prevadet a pise mi to tohle:

$ webalizer
Webalizer V2.01-05 (Linux 2.2.17) Czech
Pouzivam log soubor /var/log/apache/access.log (clf)
DNS Kontrola (20): Chyba: Namohu odevrit soubory DNS cache
/etc/bind/db.root
Vytvarim vystup v /var/www/report
Jmeno pocitace pro sestavy je 'www.psi.cz'
Ctu soubor historie... webalizer.hist
Vytvarim sestavu pro září 2000
Vytvarim sestavu pro říjen 2000
Vytvarim sumarni sestavu
Ukladam soubor historie...
9075 zaznamu (950 ignorovano) za 0.61 vterin

Coz je velice zajimave.
$ ls -l /etc/bind/db.root
-rw-r--r--    1 root     root         2769 Oct 11 02:34 /etc/bind/db.root
nechapu co chce provadet.

/etc/bind/db.root vypada takto 
;       This file holds the information on root name servers needed to
;       initialize cache of Internet domain name servers
;       (e.g. reference this file in the "cache  .  <file>"
;       configuration file of BIND domain name servers).
;
;       This file is made available by InterNIC registration services
;       under anonymous FTP as
;           file                /domain/named.root
;           on server           FTP.RS.INTERNIC.NET
;       -OR- under Gopher at    RS.INTERNIC.NET
;           under menu          InterNIC Registration Services (NSI)
;              submenu          InterNIC Registration Archives
;           file                named.root
;
;       last update:    Aug 22, 1997
;       related version of root zone:   1997082200
;
;
; formerly NS.INTERNIC.NET
;
.                        3600000  IN  NS    A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET.      3600000      A     198.41.0.4
;
; formerly NS1.ISI.EDU
;
.                        3600000      NS    B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET.      3600000      A     128.9.0.107
;
; formerly C.PSI.NET
;
.                        3600000      NS    C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET.      3600000      A     192.33.4.12
;
; formerly TERP.UMD.EDU
;
.                        3600000      NS    D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET.      3600000      A     128.8.10.90
;
; formerly NS.NASA.GOV
;
 ......
 ......


ve webalizer.conf mam nastavene toto: 
# DNSCache specifies the DNS cache filename to use for reverse DNS
lookups. 
# This file must be specified if you wish to perform name lookups on any
IP 
# addresses found in the log file.  If an absolute path is not given as 
# part of the filename (ie: starts with a leading '/'), then the name is 
# relative to the default output directory.  See the DNS.README file for 
# additional information.

#DNSCache       dns_cache.db
DNSCache        /etc/bind/db.root

# DNSChildren allows you to specify how many "children" processes are
# run to perform DNS lookups to create or update the DNS cache file.
# If a number is specified, the DNS cache file will be created/updated
# each time the Webalizer is run, immediately prior to normal processing,
# by running the specified number of "children" processes to perform
# DNS lookups.  If used, the DNS cache filename MUST be specified as
# well.  The default value is zero (0), which disables DNS cache file
# creation/updates at run time.  The number of children processes to
# run may be anywhere from 1 to 100, however a large number may effect
# normal system operations.  Reasonable values should be between 5 and
# 20.  See the DNS.README file for additional information.

DNSChildren     20

tos to jsem asi blby :-)
mike

.----------------._,^-signature+=-._,------.
`Michal Spacek 				   " 
|	Debian user, TeX user              x  
o	e-mail: skim na egarden.cz 	   |  
,	ICQ: 66962942       ____           v
`----------------------.___/----\___,------'
			 o `----' o      




Další informace o konferenci Linux