LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Listing user IP (https://www.linuxquestions.org/questions/linux-newbie-8/listing-user-ip-28350/)

Silversun 08-20-2002 10:44 AM

Listing user IP
 
Hie , everyone .. i'm new to this forum ..

well , i've got a question here ... how do i exactly list out the IP of a user ??

i mean .. what's the command in Unix/Linux to list out the IP of a user ..

Hope someone could help me out here because i've been browsing through the web and its been more than an hour and i still can't seem to find the command line or something similar to it ..

Could anyone reply me ASAP ...

thanks

neo77777 08-20-2002 10:52 AM

/sbin/ifconfig if it is on a local machine
if you need to know the IP address on a remote machine
host hostname

Silversun 08-20-2002 11:01 AM

thanks for the reply ..
but ..
i'm very new to Unix , so .. ok .. /sbin/ifconfig is the directory where all the IPs are all in there ??

well , my problem now is to list out all currently login users together with their IPs ...

so ... can i know what's the command for it ??

dnar 08-20-2002 11:22 AM

/sbin/ifconfig is a command. It lists the details of a machines interfaces. The config file /etc/hosts defines local hosts/IP's and is generally searched before any external DNS.

To list all logged in users, including hostname:

who -l

To do a DNS lookup:

nslookup hostname

Also look at:

man traceroute
man dig

Silversun 08-20-2002 11:31 AM

i don't know why but i can't do anything that you've mentioned above .. like the /sbin/ifconfig

man traceroute
man dig ..
and so on ...

i know that man is for manual ..

but when i type in man dig , this is what i get ..

No manual entry for dig.

for nslookup hostname
*** Can't find address for server ux: No information
*** Warning - the local domain is not set.
*** Either hostname should be a domain name,
*** the domain should be specified in /etc/resolv.conf,
*** or the shell variable LOCALDOMAIN should be set.

Name Server: ux
Address: 0.0.0.0

*** ux can't find hostname: Non-existent domain


All times are GMT -5. The time now is 11:35 PM.