Menu

#1 fqdn resolution

open
nobody
None
5
2006-06-19
2006-06-19
Anonymous
No

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?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.