Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2016-12-09 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (148 votes). Check out past polls.