dnscrypt-proxy

dnscrypt-proxy is "a flexible DNS proxy, with support for modern encrypted DNS protocols such as DNSCrypt v2, DNS-over-HTTPS and Anonymized DNSCrypt."

Filtering with dnscrypt-proxy allows for permanent and time-based blocking of advertisements, malware, social media, trackers, etc.