Host DNS Server with Domain Blocking

How can I setup my own DNS server on digital ocean and configure it to block certain domain traffic.

For example I configure my device to use my new dns I made. Then if I try to access on my device it is blocked and no traffic from that website is sent to my device.

I found maradns but that didnt seem to have blocking. Any help appreciated. Thanks.


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.

You’re looking for a DNS resolver. pfSense has this capability. See the docs here: