Re: dnscache file

Roy T. Fielding (fielding@kiwi.ics.uci.edu)
Fri, 10 Oct 1997 18:28:25 -0700


>We have quite a few PCs that aren't registered so they end up in the
>unresolved category.  I was trying to code a range in the wwwstat
>program, but I'm not having any luck.  Is there a way to solve for a
>range of IPs such as xxx.xx so that anything starting with xxx.xx will
>be resolved?

Not within wwwstat.  You could program a routine to do IP masking based
on the network mask, but it would be easier to just register the PCs
within your DNS.  You want to do that in any case, since lack of a DNS
name for an IP address will result in slower responses from servers that
do reverse DNS lookups.

>Also, I didn't have DNS resolving turn on in the Web server for the
>first few months.  So I have log files without DNS listed and I want to
>get them resolved.  I looked through the wwwstat documentation but
>couldn't find anything about the cache.  I turned it on in the "rc"
>file, created a empty file and provided the location in the "rc" file. 
>When I run wwwstat I get the error "No dbm on this machine at ./wwwstat
>line 1340".  How do you start a dns cache from nothing?

That is done automatically if the file is not already present.  You
do not want to create an empty file. Your perl must support dbm files
in order for it to work (see the perl documentation/books for info
on how to install that with the perl interpreter).

....Roy