Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Resolving basic info from IP address

by arthas (Hermit)
on Aug 19, 2003 at 12:28 UTC ( #284867=note: print w/replies, xml ) Need Help??


in reply to Resolving basic info from IP address

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.

  • Comment on Re: Resolving basic info from IP address

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://284867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2019-05-27 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (156 votes). Check out past polls.

    Notices?