Different dns server to query a domain

Hi, is it possible to setup when I go to a particular website, point it to that particular dns server? If so, how would I do it? On the router, it is pretty straightforward, I am kinda stuck how would I do it on pihole!!

According to the dnsmasq manual (search for “–server=”):

server=/domain.tld/9.9.9.9

You create a new file in /etc/dnsmasq.dand put the configuration lines in that file.

Don’t put the configuration in the existing 01-pihole.conf, as the change will be overwritten on the next update.

You can use any other name - perhaps 02-dnsbypass.conf

After you make the changes, restart FTL with sudo service pihole-FTL restart

You can also check your new configuration file with this command: pihole-FTL dnsmasq-test