[Dnsmasq-discuss] DNS based on MAC address

Albert ARIBAUD albert.aribaud at free.fr
Mon Jun 9 13:38:29 UTC 2014


Bonjour Mykola,

Le Mon, 9 Jun 2014 18:08:02 +0930, Mykola Kyrylenko
<mykola at kyrylenko.com> a écrit :

> Hi,
> 
> I am not sure if this has been discussed before.
> I have a Roku outside of USA.  For me to operate it, I need to use a Smart
> DNS service (Overplay).
> Unfortunately, the Roku does not allow setting the DNS manually, which
> means I need to do it in the router.
> I tried this, but the performance of my other devices, particularly the
> Panasonic TV, suffered.  The TV cannot set DNS manually either.
> 
> My router is an Asus RT-N56U.  I managed to Telnet in, and there is a
> '/etc/dnsmasq.conf' file.
> 
> Would it be possible to set the DNS for the Roku to the Overplay one, based
> on the Roku's MAC address?
> All the other devices will get the default DNS from my ISP.
> 
> Looking at the configuration file, 'dhcp-host' can set the IP address based
> on MAC address, and 'server'  specifies the DNS based on domain.  This not
> quite what I want.

You can use the set: specifier in the dhcp-host clause of the Roku, then
use the tag: specifier in a dhcp-option to send the DNS. See manpage of
dnsmasqu, in the description of '--dhcp-host'.

> regards,
> Mykola

Amicalement,
-- 
Albert.



More information about the Dnsmasq-discuss mailing list