Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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


Comment on Re: IP address to Hostname
Download Code

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 pondering the Monastery: (7)
As of 2014-12-25 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls