If you use Pi-hole as a DHCP server, you can use a dnsmasq configuration to provide a different DNS to a client by MAC ID.