![]() |
|
P is for Practical | |
PerlMonks |
Re: Resolving basic info from IP addressby arthas (Hermit) |
on Aug 19, 2003 at 12:28 UTC ( #284867=note: print w/replies, xml ) | Need Help?? |
Hi! Presuming that by "basic info" you mean the hostname associated with that IP, you can use gethostbyaddr function, or the Net::DNS module. If, instead, you want to know where the host with that IP address is located, you can try the module Net::Traceroute or Net::Traceroute::PurePerl (the last one is in pure Perl, it doesn't use XS). Even when you trace the host, it might be difficult for you to know where it's phisically located: you'll either need a visual traceroute, or a whois query for that IP address on the ARIN database, to know that; Net::Whois should be helpful in this task. Michele.
In Section
Seekers of Perl Wisdom
|
|