I've never used pihole, but on any decent router you can intercept outgoing udp to port 53, and redirect it to a destination of your choosing. DNS-over-HTTP ruined that however.