[Xitami] Reverse DNS lookup........ again
RPO
xitami@lists.xitami.org
Tue, 31 Dec 2002 09:08:40 -0800
Under the logging section of the main configuration file there is an option:
"Translate IP address" - I would assume that is a DNS lookup on the IP
address. If that is not enough then you could also toy with the "Log File
Format" - it gives you different options (maybe the extended one) that might
do what you are looking for. And 3rd, the "log file format string" might
allow you to put a DNS/Hostname variable that writes the DNS name to the log
file.
And if all that doesn't work, then you can always write a script that parses
the more recent log file (not the current though because the current log
file is still open and controlled by xitami) and performs a DNS nslookup/dig
on the IP address and rewrites that data back to the log file.
good luck.
-R
----- Original Message -----
From: "Espen Ruud" <esruud@start.no>
To: <xitami@lists.xitami.org>
Sent: Tuesday, December 31, 2002 2:02 AM
Subject: [Xitami] Reverse DNS lookup........ again
> I have asked this question a couple of times before .... But here I og
> again...
>
>
> What can I do to get the web server to list the hostnames instead of IP
> adresses in the log file??
>
>
> In my "default.cfg" file I have this:
> ---------------
> [Accesslog]
> Custom = "$\(client) - $\(user) [$\(datetime)] \"$\(request)\"
> $\(status-
> \"$\(referer)\" \"$\(agent)\""
> Cycle = "monthly"
> Local = "0"
> Translate = "1"
> ------------------
> And this:
> ------------------
> [Rdns]
> Recurse-lookups = "1"
> Debug = "1"
> Primary-server = "DNS server1"
> Secondary-server = "DNS server2"
> ------------------
> (DNS server1 and 2 are replaced by real servers)
>
> In my .cfg file for the spesific site i have this:
> ------------------
> [Accesslog]
> Filename = "sitename.log"
> Local = "0"
> Translate = "1"
>
> [Rdns]
> Recurse-lookups = "1"
> -------------------
>
>
> But I still don't get hostnames in the log file.
>
> I run version 2.5b5 as a windows service on a w2K proffesional platform.
>
> Does anyone else have this problem ???? And does anyoune know how to solve
> it ?
>
> Yours
> Espen Ruud
>
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>