find local computers

MKlinke mklinke at axsi.com
Mon Mar 1 09:35:09 UTC 2004


On Monday 01 March 2004 07:09, Marty Landman wrote:
> I recently wrote an exec to find the active ip addr's on my lan by
> pinging every possibility on my class C network. This works nicely,
> only taking about 15 seconds of wall time to complete. The output
> looks like this:
>
> $ ./findIps
> preparing pings
> start pinging
> 1 is on the network
> 3 is on the network
> 7 is on the network
> 160 is on the network
> 240 is on the network
> End of story
> $
>
> Is there any way that I could also discover the names of each of
> these active network locations?
 
"nmap" will also ping as well as return the DNS name of the computers 
it finds

"host <ip_address>" returns the DNS name
"nmblookup -A <ip_address>" returns the Netbios name





More information about the redhat-list mailing list