How do I setup a DNS server, with adblocking?

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.



This comment has been deleted

Submit an 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.


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