
This script shows all online/offline hostnames in a LAN.

Edit /etc/hosts and add all hostnames to the corresponding ip adresses.
 
Example of my hosts file:

127.0.0.1  localhost
127.0.1.1  p3300lx
192.168.1.2  router2.asus.com
192.168.1.3  fritzbox
192.168.1.11  galaxy
192.168.1.16  Latitude_7390
192.168.1.22  camsung
192.168.1.100  Win7-VM
192.168.1.101  p3300lx
192.168.1.102  mediapc
192.168.1.103  kodi
192.168.1.200  nas
192.168.1.250  ipcam-oprit1
192.168.1.251  ipcam-oprit2
192.168.1.252  ipcam-washok
192.168.1.253  ipcam-aanbouw
192.168.1.254  ipcam-shelby


