hostname doesn't stick
David G. Miller
dave at davenjudy.org
Sun Sep 17 16:48:57 UTC 2006
Tim <ignored_mailbox at yahoo.com.au> wrote:
> Surely someone's made a useful tool for compiling a list out of the
> DHCP leases? I've seen enough people say that they've wanted one.
> (Waiting to be told, "Don't call me Shirley".)
[root at bend ~]# nmap -sP --system-dns 192.168.0.0/24
Starting Nmap 4.03 ( http://www.insecure.org/nmap/ ) at 2006-09-17 10:40 MDT
Host bend.local.davenjudy.org (192.168.0.184) appears to be up.
Host abuse.local.davenjudy.org (192.168.0.186) appears to be up.
MAC Address: 00:0A:5E:1A:EC:9E (3COM)
Host spindle.local.davenjudy.org (192.168.0.188) appears to be up.
MAC Address: 00:0A:5E:1A:ED:52 (3COM)
Host wireless.local.davenjudy.org (192.168.0.250) appears to be up.
MAC Address: 00:12:17:7A:B6:F6 (Cisco-Linksys)
Nmap finished: 256 IP addresses (4 hosts up) scanned in 5.567 seconds
[root at bend ~]#
You can grep out the MAC address information if you don't want it. The
other thing nice about using nmap is it lists both DHCP and fixed IP
addresses although you can limit the scan to just the DHCP assigned
addresses if that's all you want.
... and don't call me Shirley.
Cheers,
Dave
--
Politics, n. Strife of interests masquerading as a contest of principles.
-- Ambrose Bierce
More information about the fedora-list
mailing list