Page 1 of 1

dnsmasq resolvers

Posted: Tue Feb 02, 2016 11:58 pm
by charos
I am trying to configure dnsmasq in /etc/config/dhcp for bypassing geo-restrict content in the same way I do it on my tomato router (see screenshot http://i.imgur.com/Ae9iYbi.jpg ).
Not sure if the option or my syntax is the reason I can't make it work. Any help is appreciated!
Here is a link with my miserably failed attempt http://pastebin.com/raw/8YNjvrYZ

Re: dnsmasq resolvers

Posted: Wed Feb 03, 2016 12:13 am
by Lantis
Easiest and most manageable way Is to create a separate file with your list in it.
IP HOST

E.g.
127.0.0.1 www.netflix.com

And then using the dnsmasq option "addnhosts" and point it to the file.

Re: dnsmasq resolvers

Posted: Wed Feb 03, 2016 12:30 am
by charos
thanks for the suggestion! I already figured it out within the dhcp file, but I will try your suggestion as it is a neat way of doing it!

Re: dnsmasq resolvers

Posted: Wed Feb 03, 2016 1:06 am
by Lantis
No worries.
If you need to see it in action you can install the Adblock plugin which uses this method.
Or I can provide further detail if required but sounds like you've got it covered.