Bering-uClibc 5.x - User Guide - Advanced Topics - Setting Up Add blocking with dnsmasq

From bering-uClibc
Revision as of 02:31, 15 November 2016 by Jeanrocco (Talk | contribs) (Objectives)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


There is a lot of info on the net about setting dnsmasq to block advertisements, trackings... etc. Bering-uClibcx.x comes with dnsmasq already installed, so here is a quick guide that shows a simple setup that will filter out advertisements sites from web pages on your networked devices, how lucky can we get !


  • You will need Bering-uClibc 5.x or higher.
  • The curl.lrp package.

Manual setup

(treading carefully :-))

Enter the command:

curl -s -d mimetype=plaintext > /root/tmpfile.list

Check your file tmpfile.list, you should have a list of server with the following format:

server=/... etc /


cp /root/tmpfile.list /etc/dnsmasq.d/addblock.list

Edit /etc/dnsmasq.conf and enter:


Restart dnsmasq with:

/etc/init.d/dnsmasq restart

That's it, all the nasty adds should be gone ! (well a bunch of them !)

Hum yeah! don't forget to save your configuration, a simple:

lrcfg and s) Save configuration

will suffice.