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/.

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.

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

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

···

--
Posted via http://www.ruby-forum.com/\.

thank you

···

--
Posted via http://www.ruby-forum.com/.

http://support.microsoft.com/kb/164213
RFC 1035, section 3.5

···

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.