[Dnsmasq-discuss] How to get name of DHCP'ed system?

Simon Kelley simon at thekelleys.org.uk
Sat Jan 24 18:48:33 GMT 2009


bod at bod.org wrote:

> I've been (half-heartedly) poking around at a similar problem to Chris's 
> - I have three embedded devices that provide a name with part of the MAC 
> address included (HD HomeRun, Snom M3 and Vudu boxes). Since I only have 
> one of each (and have a hard time remembering long hex numbers :), I'd 
> like to override the hostname sent with a shorter one.
> 
> So, one example (snipped from dnsmasq.leases)
> 
> 1232816970 00:18:f9:03:0f:27 10.11.1.190 Vudu-0x3783 *
> 
> I'm guessing the trailing * means that no client id was provided. So the 
> 'Vudu-0x3783' was provided by the device as a hostname in the request? 
> must've come from the device somehow, I didn't specify it anywhere :)
> 
> So I've tried:
>  dhcp-host = Vudu-0x3783,10.11.1.81,vudu
> and
>  dhcp-host = id:Vudu-0x3783,10.11.1.81,vudu
> 
> with no success. Using the MAC address works, of course. Which is why I 
> haven't been too worried about solving this; though I am curious...
>
If you have  an up-to-date version of dnsmasq then using a CNAME works well

cname=vudu,Vudu-0x3783


HTH

Simon.


> 
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list