On Tue, 6 Nov 2012 16:16:20 +0000 Chris Green cl@isbd.net allegedly wrote:
On Mon, Nov 05, 2012 at 06:18:07PM +0000, mick wrote:
On Mon, 5 Nov 2012 18:08:06 +0000 Chris Green cl@isbd.net allegedly wrote:
So, is there a command that scans for and lists hosts by *name* on a LAN?
cat /etc/hosts
Not when my hosts are assigned their IP addresses by a local DHCP server:-
Chris
My response was tongue in cheek. But since I know that you use DNSmasq on your network and DNSmasq can consult a local hosts file before allocating IP addresses over DHCP (and can map specific MAC addresses to IP addresses according to the contents of /etc/ethers) it is perfectly reasonable to consult /etc/hosts.......
Mick
---------------------------------------------------------------------
blog: baldric.net gpg fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312
---------------------------------------------------------------------