Exploring the Mac OS X Firewall
Subject:   name resolution
Date:   2005-07-23 07:05:17
From:   peterhickman
Response to: name resolution

The code to do this, taken from perldoc -f gethostbyaddr, would be something along the lines of this, put

use Socket;

at the top with the other use statements, and then when you are about to print out the address do sothing like the following.

my $iaddr = inet_aton("");
my $name = gethostbyaddr($iaddr, AF_INET);
print "$name\n";

However I find the raw IP addresses best as I can just drop them into my firewall.

1 to 1 of 1
  1. name resolution
    2005-07-25 08:35:21  ruy_lopez [View]

1 to 1 of 1