Forum: Ruby how to find hostname from a given IP address in LAN ?

1b507a552850441a516948d488962d2e?d=identicon&s=25 Sniper Abandon (mokkai)
on 2008-04-15 12:32
how to find hostname from a given IP address in LAN ?
Ac0085dae0703db56ad7f8cb9e1798ba?d=identicon&s=25 Phillip Gawlowski (Guest)
on 2008-04-15 12:46
(Received via mailing list)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pokkai Dokkai wrote:
| how to find hostname from a given IP address in LAN ?

Reverse DNS lookup.


- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

~ - You know you've been hacking too long when...
...you stare blankly at the screen and your fingers type "rwho" without
any help from your brain.  ...you get tired of screens full of worthless
information scrolling so you alias rwho.  ...you subconsciously start
typing "/usr/ucb/rwho" to bypass your alias.  ...you alias
/usr/ucb/rwho, but bypass that alias simply by inserting extra "/"s.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgEhz4ACgkQbtAgaoJTgL+eawCfSF18GsphkbPd9ArsWtmKoheY
jmgAoKJN0LRIMRPsCdrqi6mb5Yf9LQkI
=yEcM
-----END PGP SIGNATURE-----
1b507a552850441a516948d488962d2e?d=identicon&s=25 Sniper Abandon (mokkai)
on 2008-04-15 13:39
Phillip Gawlowski wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Pokkai Dokkai wrote:
> | how to find hostname from a given IP address in LAN ?
>
> Reverse DNS lookup.
>
>
> - --
> Phillip Gawlowski
> Twitter: twitter.com/cynicalryan
>

> -----END PGP SIGNATURE-----
how by using rwho ?
can you give a small example

thank you
97550977337c9f0a0e1a9553e55bfaa0?d=identicon&s=25 Jano Svitok (Guest)
on 2008-04-15 13:47
(Received via mailing list)
On Tue, Apr 15, 2008 at 1:39 PM, Pokkai Dokkai <bad_good_lion@yahoo.com>
wrote:
> Phillip Gawlowski wrote:
>  > -----BEGIN PGP SIGNED MESSAGE-----
>  > Hash: SHA1
>  >
>  > Pokkai Dokkai wrote:
>  > | how to find hostname from a given IP address in LAN ?
>  >
>  > Reverse DNS lookup.

http://support.microsoft.com/kb/164213
RFC 1035, section 3.5
E51d56251ec4affafe85ee9367228965?d=identicon&s=25 Park Heesob (Guest)
on 2008-04-15 14:45
(Received via mailing list)
Hi,
----- Original Message -----
From: "Pokkai Dokkai" <bad_good_lion@yahoo.com>
Newsgroups: comp.lang.ruby
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Sent: Tuesday, April 15, 2008 7:32 PM
Subject: how to find hostname from a given IP address in LAN ?


> how to find hostname from a given IP address in LAN ?
> --
> Posted via http://www.ruby-forum.com/.
>
>
C:\Documents and Settings\phasis>irb
irb(main):001:0> Socket::getaddrinfo('210.180.98.85',nil)[0][2]
=> "ns.hananet.net"

Regards,

Park Heesob
1b507a552850441a516948d488962d2e?d=identicon&s=25 Sniper Abandon (mokkai)
on 2008-04-16 06:38
thank you
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.