Google Pi Hole, it's mostly for ads and trackers, but someone probably has a list of "call home" domains, or you can add your own domains/hostnames that you want blocked
I believe the blocker just uses a dns server that returns a local IP address for bad domains that serve up a single pixel transparent in place of the ad, so there's a solution on pretty much every platform.
Pi-Hole has a nice GUI, but if you already have openwrt, dd-wrt or pfsense, you can likely just install packages.