I am using a local DNS server that does this called Pihole [1] supplemented with additional blocklists [2] for malware and privacy.
One thing I don't see is any statistics ... you might be surprised at how much software in your home is endlessly communicating with companies you might not even have heard of, and that's been a great benefit of taking control of my DNS resolution [3].
[2] https://github.com/benlowry/pihole-extended-hosts
[3] 5.1% of my networks' requests today got blocked - https://i.imgur.com/ELL9CDu.png