Pi-hole

Pi-hole is an application for Linux that is a DNS black hole.  It can be used to block Internet advertisements on a network level.

https://pi-hole.net/

https://github.com/pi-hole/pi-hole/