[Dnsmasq-discuss] DNS based on MAC address

Simon Kelley simon at thekelleys.org.uk
Wed Jun 11 20:11:06 UTC 2014


On 09/06/14 09:38, Mykola Kyrylenko wrote:
> 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.
> 
> regards,
> Mykola
> 
> 

You mean, send a different DNS server in the DHCP reply to the Roku?
Yes, that's possible. Something like

dhcp-mac=set:roku,<MAC address of Roku>
dhcp-option=tag:roku,option:dns-server,<IP of overplay DNS server>

should do the trick.


Cheers,S

Simon.






More information about the Dnsmasq-discuss mailing list