• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2306
  • Last Modified:

lookup hostname from ip address - internal network

How do I lookup the hostname from an IP address on our network???
0
TokenHash
Asked:
TokenHash
3 Solutions
 
fosiul01Commented:
if you have internal dns server install then

nslookup Ip address
it will show you the hostname
0
 
Toni UranjekConsultant/TrainerCommented:
... only if you configure Reverse lookup zone for your subnet and add appropriate PTR record.
0
 
AmazingTechCommented:
ping -a {ipaddress}
0
 
AmazingTechCommented:
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

0
 
Maciej SsysadminCommented:
If you have bind installed:

host ip.address
or
dig -x ip.address
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now