[Tfug] LAN hostnames
Paul Scott
tfug@tfug.org
Tue Sep 17 08:18:27 2002
Tony wrote:
>
> This might not be exactly what you were looking for, but you could run
> something like the following then extract the pertinent information with
> a little C++ app which would append the IP and hostname to your
> /etc/hosts file.
>
> ~
> Wazzup? nmap -sP 10.0.0.* -oM outputfile.txt
joy:/etc/bind# nmap -sP 192.168.0.*
Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Host (192.168.0.0) seems to be a subnet broadcast address (returned 1
extra pings).
Host actiontec (192.168.0.1) appears to be up.
Host (192.168.0.2) appears to be up.
Host (192.168.0.3) appears to be up.
Host (192.168.0.255) seems to be a subnet broadcast address (returned
2 extra pings). Note -- the actual IP also responded.
Nmap run completed -- 256 IP addresses (4 hosts up) scanned in 7 seconds
How does that help?
Thanks,
Paul