LONESTAR

The #1 Choice for Web Hosting
Support Forum
How-to Resources
Log Resolution

Please e-mail us if you need direct access to your logs - otherwise your logs will be parsed daily and compiled into your Webalizer report (which automatically performs reverse lookups)!

How do I convert IP address in my Web logs to fully qualified host names?

To convert IP addresses to host names, you must use the program logresolve. This can only be done on our servers via Telnet; unlike other log processing operations, you must be online in order to perform the necessary reverse nameservice operations.

logresolve is a simple filter. It accepts common logs on its standard input, and generates those same logs on standard output, with host names substituted for IP addresses whenever possible. Example:

logresolve < transfer.log > fqdn.transfer
This command would convert your common log.

Please note that logresolve can take a very long time to run, even though it seems to be doing nothing. This is because each attempt to look up a host name generates a query to a remote nameserver, which may or may not answer or be configured properly. In many cases, you will not be able to obtain host names for an IP address.

Return to How-to Resources


Search:
Still need help? E-Mail us!

(888) 707-9321

Sign Up!     Service Plans     Guarantee     Contact Us
Home
11900 Stonehollow Dr.
Austin, Texas 78758-3134
info@lstar.net
Tel./Fax (915) 203-0193