lookup hostname from ip address - internal network

Posted on 2009-02-11
Medium Priority
Last Modified: 2013-12-06
How do I lookup the hostname from an IP address on our network???
Question by:TokenHash
LVL 29

Accepted Solution

fosiul01 earned 672 total points
ID: 23613625
if you have internal dns server install then

nslookup Ip address
it will show you the hostname
LVL 31

Assisted Solution

by:Toni Uranjek
Toni Uranjek earned 672 total points
ID: 23613704
... only if you configure Reverse lookup zone for your subnet and add appropriate PTR record.
LVL 21

Expert Comment

ID: 23614659
ping -a {ipaddress}
LVL 21

Expert Comment

ID: 23614715
Command Line.

for /f "tokens=2 delims=. " %a in ('ping -n 1 -a {ipaddress} ^| find "Pinging"') do echo %a

In a batch file pass in the ipaddress.
for /f "tokens=2 delims=. " %%a in ('ping -n 1 -a %1 ^| find "Pinging"') do echo IP Address - %1 is host - %%a

Open in new window

LVL 23

Assisted Solution

by:Maciej S
Maciej S earned 672 total points
ID: 23615613
If you have bind installed:

host ip.address
dig -x ip.address

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question