Operating System - HP-UX
1830898 Members
3182 Online
110017 Solutions
New Discussion

know IP address, need hostname

 
Jeff Patrick
Advisor

know IP address, need hostname

From HP-UX, is there any way to tell the hostname of a system (Windows or UX) if I know its IP address? I can ping it, but it doesn't then show up on my arp -a, so I'm not sure where to get its mac address either. Thanks for your help.
6 REPLIES 6
Christian Ching
Occasional Advisor

Re: know IP address, need hostname

Have you tried
nslookup IP_address ?
Christian Ching
Occasional Advisor

Re: know IP address, need hostname

You can also simply try the
'hostname' command
hope this helps
Victor BERRIDGE
Honored Contributor

Re: know IP address, need hostname

nslookup will work only if the hosts are declared in the DNS, or NIS, I know no other way than to try to connect => telnet will prompt you for login but will also tell you who he is and what system it is (exept NT...)

Regards

VB
Albert E. Whale, CISSP
Honored Contributor

Re: know IP address, need hostname

Jeff,

There are a couple of tricks that haven't been expressed here yet, Some of them are the 'Backdoors' that Hackers may use, now and again.

Have you tried SNMP? If SNMP is running, you should be able to get it with:

snmpwalk system

IF that doesn't work, how about probing some of the Well Known Services? Have you attempted to knock on the SMTP door? Telnet? Those would be my first line of attempts to get information which was not readily available.

Hope that helps!

Have a Great Day!

Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Mike McKinlay
Honored Contributor

Re: know IP address, need hostname

If you use

ping -a

from a Windows workstation, it performs the nslookup for you and resolves the address against your DNS.
"Hope springs eternal."
Rita C Workman
Honored Contributor

Re: know IP address, need hostname

From the UNIX box, nslookup will do it's search based on how and in what order your /etc/nsswitch.conf is set up . So check this file, make sure it's configured to try every possible avenue to check.

When you do a nslookup to the IP, you should see the name if it has been set up in your host file/DNS or NIS.

Just a thought,