DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

Friendly names associated with MAC addresses

More
06 Jan 2012 10:14 #70684 by clearloon
Replied by clearloon on topic Partial solution
A solution, at least on the 2750n, is to telnet in and add aliases to /etc/hosts. You'll need to reboot the device once you've made changes but any changes you make will persist. You can use vi or vim (both are installed) however echo works fine:

Code:
echo "192.168.1.11 desktop-computer" >> /etc/hosts


The assumption is that your MACs are already bonded to IPs.

A more elegant solution would be for the device to recognise and associated hostnames. This should be possible as it looks like the OS is OpenWRT or a derivative and thus uses dnsmasq. This should work but for some reason doesn't: http://wiki.openwrt.org/doc/howto/dhcp.dnsmasq#configuring.dnsmasq.to.associate.client.hostnames.with.dhcp-supplied.ip.addresses

The man page for dnsmasq suggests a couple of othe oprions which I'll look into and respond on.

Given the device OS supports this functionality, it'd be nice if Draytek could build the option into the www interface!

Please Log in or Create an account to join the conversation.

Moderators: ChrisSami