Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 rifling through the Monastery: (12)
As of 2015-07-07 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls