Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: IP address to Hostname

by imrags (Monk)
on Jul 03, 2009 at 09:52 UTC ( #776999=note: print w/ replies, xml ) Need Help??


in reply to IP address to Hostname

TIMTOWTDI. :)
1. you can use gethostbyaddr
if($input =~ /^\d+.\d+.\d+.\d+$/) { my $name = gethostbyaddr(inet_aton($input),AF_INET); }
Other way, complicated, but gives u more accurate information is
2. Querying a website ARIN
Gives you much more information by typing the IP in the "Who is" page.
Raghu

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2016-07-01 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (7 votes). Check out past polls.