Use Pi-Hole as DHCP server and use dnsmasq configuration lines to exclude clients.
Or, use the new Pi-Hole 5.0 beta which has this feature included