Re: find local computers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux