Results 1 to 5 of 5

Thread: How can I find a windows hostname on the network via IP with Ubuntu?

  1. #1
    Join Date
    Jul 2006
    Beans
    4,714

    How can I find a windows hostname on the network via IP with Ubuntu?

    Long story short... at work (school district) we have a full blown Windows network. () I however have a spare computer set up that runs Ubuntu so I can use various utilities on it.

    We found a student who was instant messaging. *tisk tisk* and we have their IP. We ran ping -a on the IP but it didn't pull the host name as it should.

    Using Ubuntu Intrepid, is there any way I can dig up the host name from the IP that I have?

  2. #2
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How can I find a windows hostname on the network via IP with Ubuntu?

    We ran ping -a on the IP but it didn't pull the host name as it should.
    How does that work?

    Quoting the ping man page:
    ping -a Audible ping.
    Try this:
    Code:
    arp -a <ip_address>

  3. #3
    Join Date
    Jan 2009
    Beans
    367

    Re: How can I find a windows hostname on the network via IP with Ubuntu?

    Also try the host command:

    Code:
    host <ip>

  4. #4
    Join Date
    Jul 2006
    Beans
    4,714

    Re: How can I find a windows hostname on the network via IP with Ubuntu?

    if you go to command prompt in windows and type

    ping -a 10.0.0.1

    It'll give you the host name of 10.0.0.1 + ping it 4 times as usual.

    When I pinged -a myself, it gave me my host name.
    When I pinged -a the IP in question, it didn't give me a host name... which is what I need.

  5. #5
    Join Date
    Jul 2006
    Beans
    4,714

    Re: How can I find a windows hostname on the network via IP with Ubuntu?

    Quote Originally Posted by Copernicus1234 View Post
    Also try the host command:

    Code:
    host <ip>

    Like this?

    jason@jason-intrepid:~$ host 192.168.1.100
    Host 100.1.168.192.in-addr.arpa. not found: 3(NXDOMAIN)
    jason@jason-intrepid:~$



    192.168.1.100 should be = "Curtdesktop"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •