Link to home
Avatar of Larrs
Larrs

asked on

get hostname from IP address

I know the IP addresses for several computers on my LAN but can't find a way to translate the IPs into hostnames.  Just a simple switch & router, class C network.  No Active Directory or anything like that.  I have tried "ping -a xxx.xxx.xxx.xxx" but that does not return the hostname.  Is there a way I can do this on my network as it is now?  If not, would would be needed before this would be possible.

Thanks!
Avatar of ryan_conlogue
ryan_conlogue

You can try a tracert

That will display the host name of the ip you trace
Avatar of Larrs

ASKER

that seems to only report IP as well... no hostname
You would require a DNS server setup on your network to perform the reverse dns lookup.
You can try nbtstat -a xxx.xxx.xxx.xxx
Are there any event log messages in the application logs?  
Have you restarted the exchange services on the servers which have not moved?

Sorry wrong question!
SOLUTION
Avatar of wdelgadop
wdelgadop

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Larrs

ASKER

net view seems to return some of the hostnames on my LAN, but not all.  It looks like maybe it list lists all Windows hosts but not any Linux hosts?  It also ONLY reports hostnames and doesn't list the corresponding IPs.

nbtstat gives the following for the Linux hosts...

Local Area Connection:
Node IpAddress: [] Scope Id: []

    Host not found.
   
... but I can ping the IP and get responses.  nbtstat does return results for Windows hosts.
For linux try dig -x xxx.xxx.xxx.xxx
Avatar of Larrs

ASKER

From windows command prompt I get the following:

'dig' is not recognized as an internal or external command,
operable program or batch file.
have you tried ANGRY IP SCANNER?
post results
works for me..even for linux
Avatar of Larrs

ASKER

From what I've read on that site the program sounds legit enough.  But can anyone confirm this app is safe to download/run?  My anti-virus pops up a warning that it's potentially harmful/unwanted.  And I saw on the linked website that there is a petition about that... but I've never heard of the program before and am just a bit hesitant to try it.  Anyone else familiar with this?
look...if the software is ipscan.exe it's ok...i have it, i use it..it's ok..but...every app that works with ip scan and remote applications...are detected as unsafe for antivirus..dont worry...if you want i can send you one picture of it..working..then you wont worried anymore.
Avatar of Larrs

ASKER

Sorry for the slow response.

I just tried angry ip scanner.  That still is not working for my linux hosts.  It returns the hostname for Windows hosts.  But for Linux hosts, it just says N/A.

Any other ideas?
ASKER CERTIFIED SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.