Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 30422  / 2 Years ago, thu, june 2, 2022, 7:10:06

I ssh into the machines on my network using hostname.local. I've forgotten the hostname for one of the machines. Is there a command I can issue from one machine that will broadcast a request for and display all the hostnames for the machines on my lan?


More From » networking

 Answers
7

nbtscan



A good tool to scan all hostnames on a network is nbtscan.



$ nbtscan 192.168.1.0/24                                                                                                  
Doing NBT name scan for addresses from 192.168.1.0/24

IP address NetBIOS Name Server User MAC address
------------------------------------------------------------------------------
192.168.1.0 Sendto failed: Permission denied
192.168.1.162 CLEMENTINA <server> CLEMENTINA 00:00:00:00:00:00
192.168.1.205 CLEMENTINA <server> CLEMENTINA 00:00:00:00:00:00
192.168.1.255 Sendto failed: Permission denied




You can install it in the Software Center by searching for 'nbtscan', through their website, or via Terminal:



sudo apt-get install nbtscan

[#36990] Saturday, June 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ionash

Total Points: 214
Total Questions: 111
Total Answers: 116

Location: Sudan
Member since Thu, May 7, 2020
4 Years ago
;