How do I setup a DNS server, with adblocking?

November 18, 2015 2.6k views
Nginx Firewall DNS Networking Deployment IPv6 Debian

Hi there, I was just curious about a little article I came across about an Ad blocking DNS server:

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.


1 Answer


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

Have another answer? Share your knowledge.