Best way to get a computer Name from its IP

Discussion in 'Windows 7' started by idsk, Jun 19, 2012.

  1. idsk

    idsk MDL Junior Member

    Aug 25, 2009
    62
    5
    0
    Hello everybody,
    here is my problem, i got an active directory server with hundreds users/machines connected to it
    there is a dhcp server allocating IP to any computer connected to the network

    today an "unknown" workstation got connected (i knew it because it was infected by a virus spamming the dns server),
    so i wanted to get some infos about it
    it wasnt shown on my active directory, and i know it wasnt connected to the domain

    i tried to log on the ip using a windows 7 connected to the domain,
    so i wanted to get the name of the computer, but no way to get it simply
    "nbtstat" didnt find
    "nslookup" didnt find
    "ping" didnt show the name

    only "tracert" finnaly showed me the name of the computer

    (so then i managed to log on the local account it using the syntax "COMPUTER_NAME\Administrator")

    so i wanted to know which protocol "tracert" is using to get the name
    and also what is the best way to get a station name which is on the network but not on the domain and only knowing the ip address

    sorry for my bad english
    thanks