Pi-hole isn't bad software, far from it, but the usual implementation suggestions need revising for more complex network ...
MCUs are ideal MQTT clients because the protocol is lightweight and designed for low-bandwidth, low-RAM environments.