[Dnsmasq-discuss] How to get name of DHCP'ed system?
Simon Kelley
simon at thekelleys.org.uk
Fri Jan 23 16:15:51 GMT 2009
Chris G wrote:
> I have just moved fully to using dnsmasq on my xubuntu 8.10 system,
> it's made things much simpler than they were. I have removed all my
> manually added entries for static IP hosts on the LAN from /etc/hosts
> and I've "un static IP'ed" them - dnsmasq does it all for me.
>
> However I have one issue, I have a couple of things which are not
> computers on the LAN, there's an HP printer and a Siemens DECT/VOIP
> box. I have set them to use DHCP to get their settings but I don't
> know how to find what their names are.
>
> It's easy for a computer on the network, I have set the name when
> installing the OS so I know what the name is. But I don't know how to
> find the name of a box whose name I'm not able to set myself.
>
> How can I find DNS names of systems which dnsmasq knows about?
>
It's quite possible that they don't have names, or are not sending them
as part of the DHCP reuests. If there is a name, it will be logged by
dnsmasq at the end of the line where it logs the DHCPACK. (look in syslog).
If the devices don't send names, it's no problem, you can associate a
name of your choice with the MAC address of the device in
/etc/dnsmasq.conf using the "dhcp-host" option. Eg.
dhcp-host=11:22:33:44:55:66,voipbox
To find the MAC address, again, look in the log file: dnsmasq logs them
there.
HTH
Simon.
More information about the Dnsmasq-discuss
mailing list