dnsmasq resolvers

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
charos
Posts: 3
Joined: Tue Jan 29, 2013 8:36 pm
Location: Athens, GR

dnsmasq resolvers

Post 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

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: dnsmasq resolvers

Post 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.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

charos
Posts: 3
Joined: Tue Jan 29, 2013 8:36 pm
Location: Athens, GR

Re: dnsmasq resolvers

Post 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!

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: dnsmasq resolvers

Post 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.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply