LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-24-2013, 06:51 AM   #1
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Rep: Reputation: Disabled
Question how to find out the name of pc that shares there wireless network with you


i am useing wireless network with another computer how do i find the name of the other pc i no in windows u use cmd command and it gives you thare computer name how do i do it useing slackware14 kde4
 
Old 04-24-2013, 07:53 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Location: Walsall, UK
Posts: 1,843
Blog Entries: 5

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Have a look at the man pages for the host and dig commands.
 
Old 04-24-2013, 08:08 AM   #3
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
what do i type to get man pages for dsn host
 
Old 04-24-2013, 08:47 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Your questions is not clear. Do you have hostname or ip address of other machines? Or do you want to list out all machines on a same wireless network?

Well, on a same network you can find the other machine names using nslookup or host commands like:
Code:
~$ nslookup <option> [hostname|ip]
~$ host <option> [hostname|ip]
~$ dig <option> [hostname|ip]
To check any manual page, use:
Code:
~$ man <command_name>
~$ man nsloookup
~$ man dig
~$ man host
Just check these links:
http://linux.die.net/man/1/dig
http://linux.die.net/man/1/nslookup
http://linux.die.net/man/1/host
http://www.thegeekstuff.com/2012/02/...mand-examples/

Last edited by shivaa; 04-24-2013 at 08:52 AM.
 
Old 04-24-2013, 09:15 AM   #5
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
You can use nmap to see IP address of all the hosts that are up for a particular subnet, for example:
Code:
# nmap -sn 192.168.1.0/24
Starting Nmap 5.51 ( http://nmap.org ) at 2013-04-24 19:34 IST
Nmap scan report for 192.168.1.1
Host is up (0.0039s latency).
MAC Address: 00:1B:57:BB:9E:1C (Semindia Systems Private Limited)
Nmap scan report for 192.168.1.74
Host is up.
Nmap scan report for 192.168.1.75
Host is up (0.00023s latency).
MAC Address: 00:0C:29:EF:FF:F6 (VMware)
Nmap done: 256 IP addresses (3 hosts up) scanned in 7.47 seconds
To view hostname of linux machine, you can use:
Code:
# host 192.168.1.74
74.1.168.192.in-addr.arpa domain name pointer srv.mddesai.local.
To view hostname (netbios) of windows machine, you can use:
Code:
# nbtscan 192.168.1.75
Doing NBT name scan for addresses from 192.168.1.75

IP address       NetBIOS Name     Server    User             MAC address      
------------------------------------------------------------------------------
192.168.1.75     MADHU-PC         <server>  <unknown>        00-0c-29-ef-ff-f6
 
1 members found this post helpful.
Old 04-24-2013, 10:35 AM   #6
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
the only comand that works is nmap
nslookup= bash: host: command not found
host 192.168.1.74= bash: host: command not found
nbtscan 192.168.1.75= bash: nbtscan: command not found

i am useing linux wifislax4.4 kde4 i want to see the computer name that gives me internet conection when i use windows it says eg, harrys computer

i am new to linux still lerning man pages i find hard to understand as am newbie

thanks
 
Old 04-24-2013, 10:59 AM   #7
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Originally Posted by highrolla View Post
i want to see the computer name that gives me internet conection when i use windows it says eg, harrys computer
It's still unclear. Do you want to know the gateway/router name? Can you invoke:
Code:
~$ route -n
 
Old 04-24-2013, 11:22 AM   #8
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by highrolla View Post
i want to see the computer name that gives me internet conection when i use windows it says eg, harrys computer
probably you want SSID of wireless router. i don't have wireless device to check, but quick google found these results. try them, i am not sure.

Howto view available wireless networks/ssid broadcasts?

Linux Finding Hidden Networks (ESSID) (SSID)
 
Old 04-24-2013, 12:24 PM   #9
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
i have the ip i dont want the rooter essid i want name of all computers linked to the rooter but not mine as i no that

sorry my fault am not that clear thanks
 
Old 04-24-2013, 12:29 PM   #10
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
IP of which system. Anyway, using the IP address you find the hostname, using nslookup:
Code:
~$ nslookup <ip>
If nslookup cmd is not found then show us result of:
Code:
~$ echo $PATH
 
Old 04-24-2013, 12:53 PM   #11
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by highrolla View Post
i want name of all computers linked to the rooter but not mine as i no that
That's exactly post #5 did. Use nmap, and then use host or nbtscan to find hostname of computers. If nbtscan is not installed, then install it. Just google 'slackware nbtscan install'.

Whats your network subnet? Use that address with nmap.

You can also try

Code:
# arp

Last edited by mddnix; 04-24-2013 at 02:22 PM. Reason: changed 'arp -a' to 'arp'.
 
Old 04-24-2013, 02:38 PM   #12
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
this is result of echo $PATH

echo $PATHecho $PATH
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/kde4/libexec:/usr/kerberos/bin:/usr/kerberos/sbin:/usr/lib/qt/bin
 
Old 04-24-2013, 03:40 PM   #13
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
off topic, but continuing from post #5, you can also find OS (or atleast its family) and open ports of remote host.

Code:
# nmap -O 192.168.1.75
Starting Nmap 5.51 ( http://nmap.org ) at 2013-04-25 02:04 IST
Nmap scan report for 192.168.1.75
Host is up (0.00030s latency).
Not shown: 993 filtered ports
PORT      STATE SERVICE
135/tcp   open  msrpc
139/tcp   open  netbios-ssn
445/tcp   open  microsoft-ds
554/tcp   open  rtsp
2869/tcp  open  icslap
5357/tcp  open  wsdapi
10243/tcp open  unknown
MAC Address: 00:0C:29:EF:FF:F6 (VMware)
Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
Device type: general purpose
Running: Microsoft Windows 2008|7|Vista
OS details: Microsoft Windows Server 2008, Microsoft Windows 7 Professional, Microsoft Windows Vista SP0 or SP1, Server 2008 SP1, or Windows 7
Network Distance: 1 hop

OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 14.59 seconds
 
  


Reply


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
Wireless network disconnects before unmounting network shares-shutdown problem grahamw Linux - Networking 2 05-10-2011 02:05 AM
I can't find a Wireless Network Manager in Arch ducksong Arch 3 11-27-2010 03:05 PM
network-manager can't find my wireless devices asimov Ubuntu 4 09-27-2007 09:48 AM
Inspiron E1705 can't find wireless network es0teric Linux - Laptop and Netbook 2 07-31-2007 01:25 AM
Can't access Samba shares with wireless network NeoChaosX Linux - Software 2 08-12-2006 01:22 PM


All times are GMT -5. The time now is 08:39 PM.

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