On Thu, Jan 22, 2009 at 09:22:39PM +0000, Chris G wrote:
On Thu, Jan 22, 2009 at 09:08:53PM +0000, mbm wrote:
On Thu, 22 Jan 2009 16:05:47 +0000 Chris G cl@isbd.net allegedly wrote:
Am I missing something obvious somewhere? I don't think I've seen the ability to attach names to MAC addresses in any of the routers I've used over the past few years (Zyxel, Speedtouch). The BT 2Wire router allows you to manually give names to the MAC addresses but I'm not sure that it will let you use them to refer to them.
DNSMasq will do all of that - read the manual - it is quite helpful.
Turn off DHCP on your router and use DNSMasq to issue dhcp leases. Map the MAC addresses to IP addresses in /etc/ethers. Map IP addresses to names in /etc/hosts on the DNSMasq server
That's something I hadn't even thought of - excellent, it at least gets all the configuration into one place. Thank you!
It's actually even easier, dnsmasq gets the names of the DHCP clients when they ask for their IP addresses. Thus *removing* all reference to a remote system that gets its IP address by DHCP means that dnsmasq will know its name and IP address. So for all my 'computer' DHCP clients I'm now sorted.
However there is one minor issue remaining. For non-computer DHCP clients how do I know what they call themselves? I.e. when my HP 7310 printer starts up and gets its IP address using DHCP what is its name?