fqdn resolution
Brought to you by:
duckworthlewis
i hacked together a script and inserted it into squint.pl
bascially:
sub ip2fqdn {
my($address) = @_;
$name = gethostbyaddr(inet_aton($address), AF_INET);
return $name;
}
this function is called in sub userstats as:
my $hostname = ip2fqdn($useranon);
Then chage the PRINT REPORT section to say:
"Internet usage summary for $hostsname: "
However, it still prints the ip address regardless of
the change.
What is going on?