Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-20-2004, 01:48 PM   #1
LQ Newbie
Registered: May 2004
Location: Idaho
Distribution: Red Hat 9.0
Posts: 6

Rep: Reputation: 0
Can someone tell me a command to determine the hostname of an IP on the network?


I am running on an NIS network with an NIS master and NIS slave (running slackware), 2 servers running RH9.0, and some RH9.0 clients. There are also Windows machines running on the network, the gateway system being a Windows server.

One of our systems is having an IP conflict. A machine is set to use IP However, it is unable to grab this IP address as the IP exists somewhere else on the network. I am unable to find the physical computer that is taking this IP address.

For some reason I am unable to SSH, rlogin, or telnet into, but it pings just fine. A windows IP scanner gives a hostname for this system that cannot be pinged or otherwise found either from a Windows computer on the network, or a Linux computer on the network.

Another strange thing about the hostname. We have a file naming convention that consists of four letters, then the letter A, and the number of the system, ie isukA001, isukA026, isukA028, etc, etc. (not the real names of course) In Linux, the hostnames are displayed as I just typed. However, when using the Windows IP scanner, the hostnames are shown there as isuko001, isuko026, and isuko028. These systems all have static IP addresses defined in the hosts file on the NIS system. I have no idea what would cause this. Most of the Linux systems don't even display a hostname when scanned with the Windows IP scanner.

Now, my personal system,, has the hostname of isukA001, however the windows ip scanner shows the system having a hostname of isuko001.

I'm really not sure what I can do now. I have root access to the Linux network, but don't know how to locate the system taking IP, or how to find out it's hostname.

I've tried using the commands host and dig, but I think I must be using the wrong arguments or syntax because I can't get the hostnames that way. Can anyone help?
Old 05-20-2004, 02:53 PM   #2
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
This may be obvious but...

Have you tried running nmap on your network?
Old 05-20-2004, 03:04 PM   #3
LQ Newbie
Registered: May 2004
Location: Europe
Distribution: Mutable
Posts: 10

Rep: Reputation: 0
Hi brow27!
I've tried using the commands host and dig, but I think I must be using the wrong arguments or syntax because I can't get the hostnames that way. Can anyone help?
Maybe my naive efforts help some.
I tried the host-command and it worked.
~ $ host has address
~ $ host domain name pointer
Unfortunately the try with your address was disappointing.
~ $ host
Host not found: 3(NXDOMAIN)
Bye, bluie
Old 05-20-2004, 03:44 PM   #4
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
Well, the IP addresses 192.168.x.x are a private range, they will not route over the Internet.

Try using nslookup, if they have reverse DNS set up that will give you the host name.
Old 05-20-2004, 04:28 PM   #5
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
If you can't find the physical machine but you can ping it well ping it and "follow" the blinking lights on your switches, ... or see which computer has a "blinking" network card if you can reach the backs of the machines

This may sound stupid but trust me it can help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
squid FATAL: Could not determine fully qualified hostname. Please set 'visible_hostn tarakthakor Linux - Networking 5 12-04-2010 06:29 AM
determine network topology cutejai Linux - Networking 3 04-15-2005 12:19 PM
how do I determine my hostname? six_fingerz Linux - Networking 4 09-14-2004 09:48 AM
router unable to determine hostname kodon Linux - Wireless Networking 0 09-08-2004 12:57 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 06:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration