There are tools out there, such as Angry IP Scanner, iNet or IP Scanner, Â but this can easily be done using a bash script, not as nice looking perhaps but it does the job.
The script :
1 2 3 4 5 6 7 8 9 10 |
#!/bin/bash for i in {0..255} do cmd="nslookup 192.168.1." cmd=$cmd$i result=$($cmd|egrep "Address|name") echo "****************" echo $cmd echo $result done |
Which should give you an output that looks like this
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
**************** nslookup 192.168.1.84 Address: 192.168.1.254#53 **************** nslookup 192.168.1.85 Address: 192.168.1.254#53 **************** nslookup 192.168.1.86 Address: 192.168.1.254#53 86.1.168.192.in-addr.arpa name = Tobiass-iMac.lan. **************** nslookup 192.168.1.87 Address: 192.168.1.254#53 87.1.168.192.in-addr.arpa name = raspberrypi.lan. **************** nslookup 192.168.1.88 Address: 192.168.1.254#53 88.1.168.192.in-addr.arpa name = Lindas-iPad.lan. **************** nslookup 192.168.1.89 Address: 192.168.1.254#53 **************** |
That’s it
-Tobias