in reply to Reverse nslookup
In DNS terms, if the ip address is a.b.c.d, you want to lookup the "PTR" (not "A"!) tag for d.c.b.a.in-addr.arpa. That's what gethostbyaddr does:
use Socket qw( AF_INET inet_aton ); my $name = gethostbyaddr(inet_aton('69.147.76.15'), AF_INET); print "$name\n";
f1.www.vip.re1.yahoo.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reverse nslookup
by Anonymous Monk on Aug 25, 2009 at 20:33 UTC | |
by ikegami (Patriarch) on Aug 25, 2009 at 21:21 UTC |