Report this

What is the reason for this report?

How do I setup a DNS server, with adblocking?

Posted on November 18, 2015

Hi there, I was just curious about a little article I came across about an Ad blocking DNS server: https://www.debian-administration.org/article/535/Blocking_ad_servers_with_dnsmasq

What I found great about it is that on a Raspberry Pi locally, I can set it up to point to the Pi instead of having to download resources for ads I don’t care about at all.

I do have ufw setup where it blocks everything except web (for sending requests to ad sites to itself, using nginx), ssh (for obvious reasons), and DNS (for actually serving up the local blank webpage, using dnsmasq).

However, the DNS portion of it is not working. I don’t know exactly if it’s DigitalOcean blocking the request, but I would like to be able to setup either any host on my network to point to the droplet as a DNS server, or my router. However, I can’t seem to get it to work, it just borks my internet connection.

Help?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@gregthehun

How are you attempting to setup your connection / router? More specifically, what have you tried and what has failed? How are you attempting to redirect traffic? etc

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.